Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_gui_kernel_qapplication.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3#include <QApplication>
4#include <QStyleFactory>
5#include <QWidget>
6
7
9struct MyWidget
10{
11 QSize sizeHint() const;
12
13 int foo = 0;
15 {
16 MyWidget tmp = other;
17 return tmp;
18 };
19 int manhattanLength() { return 0; }
20};
21
22void startTheDrag() {};
23void wrapper1() {
24MyWidget startPos;
25MyWidget currentPos;
26int x = 0;
27int y = 0;
28
29//! [6]
30if ((startPos - currentPos).manhattanLength() >=
31 QApplication::startDragDistance())
33//! [6]
34
35} // wrapper1
36
37} // src_gui_kernel_qapplication