40 #ifndef QAPPLICATION_H
41 #define QAPPLICATION_H
43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtCore/qcoreapplication.h>
45 #include <QtGui/qwindowdefs.h>
46 #include <QtCore/qpoint.h>
47 #include <QtCore/qsize.h>
48 #include <QtGui/qcursor.h>
49 #include <QtGui/qguiapplication.h>
65 #define qApp (static_cast<QApplication *>(QCoreApplication::instance()))
70 Q_PROPERTY(
int cursorFlashTime READ cursorFlashTime WRITE setCursorFlashTime)
71 Q_PROPERTY(
int doubleClickInterval READ doubleClickInterval WRITE setDoubleClickInterval)
72 Q_PROPERTY(
int keyboardInputInterval READ keyboardInputInterval WRITE setKeyboardInputInterval)
73 #if QT_CONFIG(wheelevent)
74 Q_PROPERTY(
int wheelScrollLines READ wheelScrollLines WRITE setWheelScrollLines)
76 Q_PROPERTY(
int startDragTime READ startDragTime WRITE setStartDragTime)
77 Q_PROPERTY(
int startDragDistance READ startDragDistance WRITE setStartDragDistance)
78 #ifndef QT_NO_STYLE_STYLESHEET
81 Q_PROPERTY(
bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled)
87 QApplication(
int &argc,
char **argv,
int = ApplicationFlags);
104 #if QT_DEPRECATED_SINCE(6,0)
112 static QWidget *activePopupWidget();
113 static QWidget *activeModalWidget();
116 static QWidget *activeWindow();
117 static void setActiveWindow(
QWidget* act);
127 static void setCursorFlashTime(
int);
130 static void setDoubleClickInterval(
int);
133 static void setKeyboardInputInterval(
int);
136 #if QT_CONFIG(wheelevent)
137 static void setWheelScrollLines(
int);
138 static int wheelScrollLines();
141 static void setStartDragTime(
int ms);
143 static void setStartDragDistance(
int l);
152 #ifdef QT_KEYPAD_NAVIGATION
165 #ifndef QT_NO_STYLE_STYLESHEET
168 void setAutoSipEnabled(
const bool enabled);
169 bool autoSipEnabled()
const;
170 static void closeAllWindows();
171 static void aboutQt();
190 #ifndef QT_NO_SHORTCUT
197 #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)
static int startDragDistance()
static QWidget * topLevelAt(int x, int y)
static int doubleClickInterval()
static int keyboardInputInterval()
friend class QApplication
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QEventLoop class provides a means of entering and leaving an event loop.
The QFont class specifies a query for a font used for drawing text.
The QFontMetrics class provides font metrics information.
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.
The QGuiApplication class manages the GUI application's control flow and main settings.
bool notify(QObject *, QEvent *) override
static QWindow * topLevelAt(const QPoint &pos)
static void setFont(const QFont &)
static QPalette palette()
static void setPalette(const QPalette &pal)
bool compressEvent(QEvent *, QObject *receiver, QPostEventList *) override
bool event(QEvent *) override
The QIcon class provides scalable icons in different modes and states.
The QLineEdit widget is a one-line text editor.
The QObject class is the base class of all Qt objects.
The QPalette class contains color groups for each widget state.
The QPoint class defines a point in the plane using integer precision.
The QShortcut class is used to create keyboard shortcuts.
The QString class provides a Unicode character string.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
The QTranslator class provides internationalization support for text output.
qApp setStyleSheet("QPushButton { color: white }")
[21]
std::chrono::milliseconds ms
#define QT_DEPRECATED_VERSION_X_6_0(text)
#define Q_DISABLE_COPY(Class)
#define QT_DECLARE_NATIVE_INTERFACE_ACCESSOR(T)
GLint GLint GLint GLint GLint x
[0]
GLenum GLenum GLsizei const GLuint GLboolean enabled
const char className[16]
[1]