7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qcoreapplication.h>
9#include <QtGui/qwindowdefs.h>
10#include <QtCore/qpoint.h>
11#include <QtCore/qsize.h>
12#include <QtGui/qcursor.h>
13#include <QtGui/qguiapplication.h>
29#define qApp (static_cast<QApplication *>(QCoreApplication::instance()))
34 Q_PROPERTY(
int cursorFlashTime READ cursorFlashTime WRITE setCursorFlashTime)
35 Q_PROPERTY(
int doubleClickInterval READ doubleClickInterval WRITE setDoubleClickInterval)
36 Q_PROPERTY(
int keyboardInputInterval READ keyboardInputInterval WRITE setKeyboardInputInterval)
37#if QT_CONFIG(wheelevent)
38 Q_PROPERTY(
int wheelScrollLines READ wheelScrollLines WRITE setWheelScrollLines)
40 Q_PROPERTY(
int startDragTime READ startDragTime WRITE setStartDragTime)
41 Q_PROPERTY(
int startDragDistance READ startDragDistance WRITE setStartDragDistance)
42#ifndef QT_NO_STYLE_STYLESHEET
45 Q_PROPERTY(
bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled)
51 QApplication(
int &argc,
char **argv,
int = ApplicationFlags);
68#if QT_DEPRECATED_SINCE(6,0)
76 static QWidget *activePopupWidget();
77 static QWidget *activeModalWidget();
82#if QT_DEPRECATED_SINCE(6, 5)
84 static void setActiveWindow(
QWidget* act);
95 static void setCursorFlashTime(
int);
98 static void setDoubleClickInterval(
int);
101 static void setKeyboardInputInterval(
int);
104#if QT_CONFIG(wheelevent)
105 static void setWheelScrollLines(
int);
106 static int wheelScrollLines();
109 static void setStartDragTime(
int ms);
111 static void setStartDragDistance(
int l);
120#ifdef QT_KEYPAD_NAVIGATION
132 bool autoSipEnabled()
const;
134#ifndef QT_NO_STYLE_STYLESHEET
137 void setAutoSipEnabled(
const bool enabled);
139 static void aboutQt();
158#ifndef QT_NO_SHORTCUT
165#ifndef QT_NO_GESTURES
The QAction class provides an abstraction for user commands that can be added to different user inter...
The QApplication class manages the GUI application's control flow and main settings.
static int cursorFlashTime()
static int startDragTime()
void focusChanged(QWidget *old, QWidget *now)
static QWidget * widgetAt(int x, int y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static int startDragDistance()
static QWidget * topLevelAt(int x, int y)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static int doubleClickInterval()
static int keyboardInputInterval()
friend class QApplication
\reentrant \inmodule QtGui
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
bool notify(QObject *, QEvent *) override
\reimp
static QWindow * topLevelAt(const QPoint &pos)
Returns the top level window at the given position pos, if any.
static void setFont(const QFont &)
Changes the default application font to font.
static QPalette palette()
Returns the current application palette.
static void setPalette(const QPalette &pal)
Changes the application palette to pal.
static QFont font()
Returns the default application font.
bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) override
static int exec()
Enters the main event loop and waits until exit() is called, and then returns the value that was set ...
The QIcon class provides scalable icons in different modes and states.
The QLineEdit widget is a one-line text editor.
The QPalette class contains color groups for each widget state.
\inmodule QtCore\reentrant
The QShortcut class is used to create keyboard shortcuts.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
qApp setStyleSheet("QPushButton { color: white }")
[21]
Combined button and popup list for selecting options.
#define QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(T)
GLint GLint GLint GLint GLint x
[0]
GLenum GLenum GLsizei const GLuint GLboolean enabled
static void closeAllWindows()
#define QT_DEPRECATED_VERSION_X_6_5(text)
#define QT_DEPRECATED_VERSION_X_6_0(text)
const char className[16]
[1]