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
QGuiApplicationPrivate Class Reference

#include <qguiapplication_p.h>

Inheritance diagram for QGuiApplicationPrivate:
Collaboration diagram for QGuiApplicationPrivate:

Classes

struct  QLastCursorPosition
struct  SynthesizedMouseData
struct  TabletPointData

Public Member Functions

 QGuiApplicationPrivate (int &argc, char **argv)
 ~QGuiApplicationPrivate ()
void init ()
void createPlatformIntegration ()
void createEventDispatcher () override
 Called from QCoreApplication::init()
void eventDispatcherReady () override
virtual void notifyLayoutDirectionChange ()
virtual void notifyActiveWindowChange (QWindow *previous)
bool canQuitAutomatically () override
void quit () override
void maybeLastWindowClosed ()
bool lastWindowClosed () const
QPixmap getPixmapCursor (Qt::CursorShape cshape)
void _q_updateFocusObject (QObject *object)
virtual Qt::WindowModality defaultModality () const
virtual bool windowNeverBlocked (QWindow *window) const
bool isWindowBlocked (QWindow *window, QWindow **blockingWindow=nullptr) const
void commitData ()
void saveState ()
const QColorTrcLutcolorProfileForA8Text ()
const QColorTrcLutcolorProfileForA32Text ()
virtual QPixmap applyQIconStyleHelper (QIcon::Mode, const QPixmap &basePixmap) const
virtual void notifyWindowIconChanged ()
virtual QActionPrivatecreateActionPrivate () const
virtual QShortcutPrivatecreateShortcutPrivate () const
Public Member Functions inherited from QCoreApplicationPrivate
 QCoreApplicationPrivate (int &aargc, char **aargv)
 ~QCoreApplicationPrivate ()
void init ()
QString appName () const
QString appVersion () const
bool sendThroughApplicationEventFilters (QObject *, QEvent *)
virtual bool compressEvent (QEvent *event, QObject *receiver, QPostEventList *postedEvents)
void ref ()
void deref ()
void quitAutomatically ()
void cleanupThreadData ()
void execCleanup ()
void processCommandLineArguments ()
QString qmljsDebugArgumentsString () const
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const

Static Public Member Functions

static void captureGlobalModifierState (QEvent *e)
static QPlatformIntegrationplatformIntegration ()
static QPlatformThemeplatformTheme ()
static QAbstractEventDispatcherqt_qpa_core_dispatcher ()
static void processMouseEvent (QWindowSystemInterfacePrivate::MouseEvent *e)
static void processKeyEvent (QWindowSystemInterfacePrivate::KeyEvent *e)
static void processWheelEvent (QWindowSystemInterfacePrivate::WheelEvent *e)
static void processTouchEvent (QWindowSystemInterfacePrivate::TouchEvent *e)
static void processCloseEvent (QWindowSystemInterfacePrivate::CloseEvent *e)
static void processGeometryChangeEvent (QWindowSystemInterfacePrivate::GeometryChangeEvent *e)
static void processEnterEvent (QWindowSystemInterfacePrivate::EnterEvent *e)
static void processLeaveEvent (QWindowSystemInterfacePrivate::LeaveEvent *e)
static void processFocusWindowEvent (QWindowSystemInterfacePrivate::FocusWindowEvent *e)
static void processWindowStateChangedEvent (QWindowSystemInterfacePrivate::WindowStateChangedEvent *e)
static void processWindowScreenChangedEvent (QWindowSystemInterfacePrivate::WindowScreenChangedEvent *e)
static void processWindowDevicePixelRatioChangedEvent (QWindowSystemInterfacePrivate::WindowDevicePixelRatioChangedEvent *e)
static void processSafeAreaMarginsChangedEvent (QWindowSystemInterfacePrivate::SafeAreaMarginsChangedEvent *e)
static void processWindowSystemEvent (QWindowSystemInterfacePrivate::WindowSystemEvent *e)
static void processApplicationTermination (QWindowSystemInterfacePrivate::WindowSystemEvent *e)
static void updateFilteredScreenOrientation (QScreen *screen)
static void processScreenOrientationChange (QWindowSystemInterfacePrivate::ScreenOrientationEvent *e)
static void processScreenGeometryChange (QWindowSystemInterfacePrivate::ScreenGeometryEvent *e)
static void processScreenLogicalDotsPerInchChange (QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e)
static void processScreenRefreshRateChange (QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e)
static void processThemeChanged (QWindowSystemInterfacePrivate::ThemeChangeEvent *tce)
static void processExposeEvent (QWindowSystemInterfacePrivate::ExposeEvent *e)
static void processPaintEvent (QWindowSystemInterfacePrivate::PaintEvent *e)
static void processFileOpenEvent (QWindowSystemInterfacePrivate::FileOpenEvent *e)
static void processTabletEvent (QWindowSystemInterfacePrivate::TabletEvent *e)
static void processTabletEnterProximityEvent (QWindowSystemInterfacePrivate::TabletEnterProximityEvent *e)
static void processTabletLeaveProximityEvent (QWindowSystemInterfacePrivate::TabletLeaveProximityEvent *e)
static void processGestureEvent (QWindowSystemInterfacePrivate::GestureEvent *e)
static void processPlatformPanelEvent (QWindowSystemInterfacePrivate::PlatformPanelEvent *e)
static void processContextMenuEvent (QWindowSystemInterfacePrivate::ContextMenuEvent *e)
static bool processNativeEvent (QWindow *window, const QByteArray &eventType, void *message, qintptr *result)
static bool sendQWindowEventToQPlatformWindow (QWindow *window, QEvent *event)
static bool maybeForwardEventToVirtualKeyboard (QEvent *e)
static bool isUsingVirtualKeyboard ()
static Qt::Alignment visualAlignment (Qt::LayoutDirection direction, Qt::Alignment alignment)
static QGuiApplicationPrivateinstance ()
static void showModalWindow (QWindow *window)
static void hideModalWindow (QWindow *window)
static void updateBlockedStatus (QWindow *window)
static qsizetype popupCount ()
static QWindowactivePopupWindow ()
static void activatePopup (QWindow *popup)
static bool closePopup (QWindow *popup)
static bool closeAllPopups ()
 Returns true if there are no more open popups.
static TabletPointDatatabletDevicePoint (qint64 deviceId)
static QInputDeviceManagerinputDeviceManager ()
static void applyWindowGeometrySpecificationTo (QWindow *window)
static void setApplicationState (Qt::ApplicationState state, bool forcePropagate=false)
static void resetCachedDevicePixelRatio ()
static void updatePalette ()
static QEvent::Type contextMenuEventType ()
static QThreadPoolqtGuiThreadPool ()
 Returns the QThreadPool instance for Qt Gui.
Static Public Member Functions inherited from QCoreApplicationPrivate
static void initLocale ()
static bool checkInstance (const char *method)
static bool sendThroughObjectEventFilters (QObject *, QEvent *)
static bool notify_helper (QObject *, QEvent *)
static void setEventSpontaneous (QEvent *e, bool spontaneous)
static void removePostedEvent (QEvent *)
 Removes event from the queue of posted events, and emits a warning message if appropriate.
static QThreadmainThread ()
static void sendPostedEvents (QObject *receiver, int event_type, QThreadData *data)
static void checkReceiverThread (QObject *receiver)
static QPostEventListLocker lockThreadPostEventList (QObject *object)
static bool isTranslatorInstalled (QTranslator *translator)
static bool testAttribute (uint flag)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)

Public Attributes

QWindowList modalWindowList
QList< QCursorcursor_list
QInputMethodinputMethod
QString firstWindowTitle
QIcon forcedWindowIcon
QSessionManagersession_manager
bool is_session_restored
bool is_saving_session
QEvent::Type lastTouchType
QHash< QWindow *, SynthesizedMouseDatasynthesizedMousePoints
bool ownGlobalShareContext = false
Public Attributes inherited from QCoreApplicationPrivate
QAtomicInt quitLockRef
int & argc
char ** argv
Type application_type = Tty
bool in_exec = false
bool aboutToQuitEmitted = false
bool threadData_clean = false
QTranslatorList translators
QReadWriteLock translateMutex
QString cachedApplicationFilePath
QString qmljs_debug_arguments
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage

Static Public Attributes

static bool quitOnLastWindowClosed = true
static Qt::KeyboardModifiers modifier_buttons = Qt::NoModifier
static Qt::MouseButtons mouse_buttons = Qt::NoButton
static QPlatformIntegrationplatform_integration = nullptr
static QPlatformThemeplatform_theme = nullptr
static QIconapp_icon = nullptr
static QStringplatform_name = nullptr
static QStringdisplayName = nullptr
static QStringdesktopFileName = nullptr
static Qt::MouseButton mousePressButton = Qt::NoButton
static struct QGuiApplicationPrivate::QLastCursorPosition lastCursorPosition
static QWindowcurrentMouseWindow = nullptr
static QWindowcurrentMousePressWindow = nullptr
static Qt::ApplicationState applicationState = Qt::ApplicationInactive
static Qt::HighDpiScaleFactorRoundingPolicy highDpiScaleFactorRoundingPolicy
static QPointer< QWindowcurrentDragWindow
static QList< TabletPointDatatabletDevicePoints
static QClipboardqt_clipboard = nullptr
static QPaletteapp_pal = nullptr
static QWindowList window_list
static QWindowList popup_list
static const QWindowactive_popup_on_press = nullptr
static QWindowfocus_window = nullptr
static QList< QScreen * > screen_list
static QFontapp_font = nullptr
static QString styleOverride
static QStyleHintsstyleHints = nullptr
static bool obey_desktop_settings = true
static bool popup_closed_on_press = false
static QList< QObject * > generic_plugin_list
Static Public Attributes inherited from QCoreApplicationPrivate
static QBasicAtomicPointer< QThreadtheMainThread = Q_BASIC_ATOMIC_INITIALIZER(nullptr)
static QBasicAtomicPointer< voidtheMainThreadId = Q_BASIC_ATOMIC_INITIALIZER(nullptr)
static QAbstractEventDispatchereventDispatcher = nullptr
static bool is_app_running = false
static bool is_app_closing = false
static bool setuidAllowed = false
static uint attribs

Protected Member Functions

virtual void handleThemeChanged ()
virtual QPalette basePalette () const
virtual void handlePaletteChanged (const char *className=nullptr)

Static Protected Member Functions

static bool setPalette (const QPalette &palette)

Friends

class QDragManager
class QWindowPrivate

Additional Inherited Members

Public Types inherited from QCoreApplicationPrivate
enum  Type : quint8 { Tty , Gui }
Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>

Detailed Description

Definition at line 62 of file qguiapplication_p.h.

Constructor & Destructor Documentation

◆ QGuiApplicationPrivate()

QGuiApplicationPrivate::QGuiApplicationPrivate ( int & argc,
char ** argv )

Definition at line 727 of file qguiapplication.cpp.

◆ ~QGuiApplicationPrivate()

QGuiApplicationPrivate::~QGuiApplicationPrivate ( )

Definition at line 1780 of file qguiapplication.cpp.

Member Function Documentation

◆ _q_updateFocusObject()

void QGuiApplicationPrivate::_q_updateFocusObject ( QObject * object)

Definition at line 4512 of file qguiapplication.cpp.

◆ activatePopup()

void QGuiApplicationPrivate::activatePopup ( QWindow * popup)
static

Definition at line 993 of file qguiapplication.cpp.

◆ activePopupWindow()

QWindow * QGuiApplicationPrivate::activePopupWindow ( )
static

Definition at line 986 of file qguiapplication.cpp.

◆ applyQIconStyleHelper()

virtual QPixmap QGuiApplicationPrivate::applyQIconStyleHelper ( QIcon::Mode ,
const QPixmap & basePixmap ) const
inlinevirtual

Reimplemented in QApplicationPrivate.

Definition at line 322 of file qguiapplication_p.h.

◆ applyWindowGeometrySpecificationTo()

void QGuiApplicationPrivate::applyWindowGeometrySpecificationTo ( QWindow * window)
static

Definition at line 3703 of file qguiapplication.cpp.

◆ basePalette()

QPalette QGuiApplicationPrivate::basePalette ( ) const
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 3677 of file qguiapplication.cpp.

◆ canQuitAutomatically()

bool QGuiApplicationPrivate::canQuitAutomatically ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 3907 of file qguiapplication.cpp.

◆ captureGlobalModifierState()

void QGuiApplicationPrivate::captureGlobalModifierState ( QEvent * e)
static

Definition at line 1970 of file qguiapplication.cpp.

◆ closeAllPopups()

bool QGuiApplicationPrivate::closeAllPopups ( )
static

Returns true if there are no more open popups.

Definition at line 1012 of file qguiapplication.cpp.

◆ closePopup()

bool QGuiApplicationPrivate::closePopup ( QWindow * popup)
static

Definition at line 1002 of file qguiapplication.cpp.

◆ colorProfileForA32Text()

const QColorTrcLut * QGuiApplicationPrivate::colorProfileForA32Text ( )

Definition at line 4505 of file qguiapplication.cpp.

◆ colorProfileForA8Text()

const QColorTrcLut * QGuiApplicationPrivate::colorProfileForA8Text ( )

Definition at line 4494 of file qguiapplication.cpp.

◆ commitData()

void QGuiApplicationPrivate::commitData ( )

Definition at line 4157 of file qguiapplication.cpp.

◆ contextMenuEventType()

QEvent::Type QGuiApplicationPrivate::contextMenuEventType ( )
static

Definition at line 3620 of file qguiapplication.cpp.

◆ createActionPrivate()

QActionPrivate * QGuiApplicationPrivate::createActionPrivate ( ) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 41 of file qaction.cpp.

◆ createEventDispatcher()

void QGuiApplicationPrivate::createEventDispatcher ( )
overridevirtual

Called from QCoreApplication::init()

Responsible for creating an event dispatcher when QCoreApplication decides that it needs one (because a custom one has not been set).

Reimplemented from QCoreApplicationPrivate.

Definition at line 1597 of file qguiapplication.cpp.

◆ createPlatformIntegration()

void QGuiApplicationPrivate::createPlatformIntegration ( )

Definition at line 1483 of file qguiapplication.cpp.

◆ createShortcutPrivate()

QShortcutPrivate * QGuiApplicationPrivate::createShortcutPrivate ( ) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 149 of file qshortcut.cpp.

◆ defaultModality()

Qt::WindowModality QGuiApplicationPrivate::defaultModality ( ) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 924 of file qguiapplication.cpp.

◆ eventDispatcherReady()

void QGuiApplicationPrivate::eventDispatcherReady ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 1614 of file qguiapplication.cpp.

◆ getPixmapCursor()

QPixmap QGuiApplicationPrivate::getPixmapCursor ( Qt::CursorShape cshape)

Definition at line 4472 of file qguiapplication.cpp.

◆ handlePaletteChanged()

void QGuiApplicationPrivate::handlePaletteChanged ( const char * className = nullptr)
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 3683 of file qguiapplication.cpp.

◆ handleThemeChanged()

void QGuiApplicationPrivate::handleThemeChanged ( )
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 2800 of file qguiapplication.cpp.

◆ hideModalWindow()

void QGuiApplicationPrivate::hideModalWindow ( QWindow * window)
static

Definition at line 914 of file qguiapplication.cpp.

◆ init()

void QGuiApplicationPrivate::init ( )

◆ inputDeviceManager()

QInputDeviceManager * QGuiApplicationPrivate::inputDeviceManager ( )
static

Definition at line 4534 of file qguiapplication.cpp.

◆ instance()

QGuiApplicationPrivate * QGuiApplicationPrivate::instance ( )
inlinestatic

Definition at line 191 of file qguiapplication_p.h.

◆ isUsingVirtualKeyboard()

bool QGuiApplicationPrivate::isUsingVirtualKeyboard ( )
static

Definition at line 2124 of file qguiapplication.cpp.

◆ isWindowBlocked()

bool QGuiApplicationPrivate::isWindowBlocked ( QWindow * window,
QWindow ** blockingWindow = nullptr ) const

Definition at line 940 of file qguiapplication.cpp.

◆ lastWindowClosed()

bool QGuiApplicationPrivate::lastWindowClosed ( ) const

Definition at line 3893 of file qguiapplication.cpp.

◆ maybeForwardEventToVirtualKeyboard()

bool QGuiApplicationPrivate::maybeForwardEventToVirtualKeyboard ( QEvent * e)
static

Definition at line 2131 of file qguiapplication.cpp.

◆ maybeLastWindowClosed()

void QGuiApplicationPrivate::maybeLastWindowClosed ( )

Definition at line 3868 of file qguiapplication.cpp.

◆ notifyActiveWindowChange()

void QGuiApplicationPrivate::notifyActiveWindowChange ( QWindow * previous)
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3794 of file qguiapplication.cpp.

◆ notifyLayoutDirectionChange()

void QGuiApplicationPrivate::notifyLayoutDirectionChange ( )
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3785 of file qguiapplication.cpp.

◆ notifyWindowIconChanged()

void QGuiApplicationPrivate::notifyWindowIconChanged ( )
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3829 of file qguiapplication.cpp.

◆ platformIntegration()

QPlatformIntegration * QGuiApplicationPrivate::platformIntegration ( )
inlinestatic

Definition at line 94 of file qguiapplication_p.h.

◆ platformTheme()

QPlatformTheme * QGuiApplicationPrivate::platformTheme ( )
inlinestatic

Definition at line 99 of file qguiapplication_p.h.

◆ popupCount()

qsizetype QGuiApplicationPrivate::popupCount ( )
inlinestatic

Definition at line 206 of file qguiapplication_p.h.

◆ processApplicationTermination()

void QGuiApplicationPrivate::processApplicationTermination ( QWindowSystemInterfacePrivate::WindowSystemEvent * e)
static

Definition at line 3929 of file qguiapplication.cpp.

◆ processCloseEvent()

void QGuiApplicationPrivate::processCloseEvent ( QWindowSystemInterfacePrivate::CloseEvent * e)
static

Definition at line 2868 of file qguiapplication.cpp.

◆ processContextMenuEvent()

void QGuiApplicationPrivate::processContextMenuEvent ( QWindowSystemInterfacePrivate::ContextMenuEvent * e)
static

Definition at line 3060 of file qguiapplication.cpp.

◆ processEnterEvent()

void QGuiApplicationPrivate::processEnterEvent ( QWindowSystemInterfacePrivate::EnterEvent * e)
static

Definition at line 2619 of file qguiapplication.cpp.

◆ processExposeEvent()

void QGuiApplicationPrivate::processExposeEvent ( QWindowSystemInterfacePrivate::ExposeEvent * e)
static

Definition at line 3400 of file qguiapplication.cpp.

◆ processFileOpenEvent()

void QGuiApplicationPrivate::processFileOpenEvent ( QWindowSystemInterfacePrivate::FileOpenEvent * e)
static

Definition at line 2885 of file qguiapplication.cpp.

◆ processFocusWindowEvent()

void QGuiApplicationPrivate::processFocusWindowEvent ( QWindowSystemInterfacePrivate::FocusWindowEvent * e)
static

Definition at line 2661 of file qguiapplication.cpp.

◆ processGeometryChangeEvent()

void QGuiApplicationPrivate::processGeometryChangeEvent ( QWindowSystemInterfacePrivate::GeometryChangeEvent * e)
static

Definition at line 2816 of file qguiapplication.cpp.

◆ processGestureEvent()

void QGuiApplicationPrivate::processGestureEvent ( QWindowSystemInterfacePrivate::GestureEvent * e)
static

Definition at line 3032 of file qguiapplication.cpp.

◆ processKeyEvent()

void QGuiApplicationPrivate::processKeyEvent ( QWindowSystemInterfacePrivate::KeyEvent * e)
static

Definition at line 2547 of file qguiapplication.cpp.

◆ processLeaveEvent()

void QGuiApplicationPrivate::processLeaveEvent ( QWindowSystemInterfacePrivate::LeaveEvent * e)
static

Definition at line 2646 of file qguiapplication.cpp.

◆ processMouseEvent()

void QGuiApplicationPrivate::processMouseEvent ( QWindowSystemInterfacePrivate::MouseEvent * e)
static

History is silent on why Qt splits mouse events that change position and button state at the same time. We believe that this was done to emulate mouse behavior on touch screens. If mouse tracking is enabled, we will get move events before the button is pressed. A touch panel does not generally give move events when not pressed, so without event splitting code path we would only see a press in a new location without any intervening moves. This could confuse code that is written for a real mouse. The same is true for mouse release events that change position, see tst_QWidget::touchEventSynthesizedMouseEvent() and tst_QWindow::generatedMouseMove() auto tests.

Definition at line 2313 of file qguiapplication.cpp.

◆ processNativeEvent()

bool QGuiApplicationPrivate::processNativeEvent ( QWindow * window,
const QByteArray & eventType,
void * message,
qintptr * result )
static

Definition at line 2119 of file qguiapplication.cpp.

◆ processPaintEvent()

void QGuiApplicationPrivate::processPaintEvent ( QWindowSystemInterfacePrivate::PaintEvent * e)
static

Definition at line 3472 of file qguiapplication.cpp.

◆ processPlatformPanelEvent()

void QGuiApplicationPrivate::processPlatformPanelEvent ( QWindowSystemInterfacePrivate::PlatformPanelEvent * e)
static

Definition at line 3045 of file qguiapplication.cpp.

◆ processSafeAreaMarginsChangedEvent()

void QGuiApplicationPrivate::processSafeAreaMarginsChangedEvent ( QWindowSystemInterfacePrivate::SafeAreaMarginsChangedEvent * e)
static

Definition at line 2778 of file qguiapplication.cpp.

◆ processScreenGeometryChange()

void QGuiApplicationPrivate::processScreenGeometryChange ( QWindowSystemInterfacePrivate::ScreenGeometryEvent * e)
static

Definition at line 3331 of file qguiapplication.cpp.

◆ processScreenLogicalDotsPerInchChange()

void QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange ( QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent * e)
static

Definition at line 3355 of file qguiapplication.cpp.

◆ processScreenOrientationChange()

void QGuiApplicationPrivate::processScreenOrientationChange ( QWindowSystemInterfacePrivate::ScreenOrientationEvent * e)
static

Definition at line 3313 of file qguiapplication.cpp.

◆ processScreenRefreshRateChange()

void QGuiApplicationPrivate::processScreenRefreshRateChange ( QWindowSystemInterfacePrivate::ScreenRefreshRateEvent * e)
static

Definition at line 3380 of file qguiapplication.cpp.

◆ processTabletEnterProximityEvent()

void QGuiApplicationPrivate::processTabletEnterProximityEvent ( QWindowSystemInterfacePrivate::TabletEnterProximityEvent * e)
static

Definition at line 3003 of file qguiapplication.cpp.

◆ processTabletEvent()

void QGuiApplicationPrivate::processTabletEvent ( QWindowSystemInterfacePrivate::TabletEvent * e)
static

Definition at line 2906 of file qguiapplication.cpp.

◆ processTabletLeaveProximityEvent()

void QGuiApplicationPrivate::processTabletLeaveProximityEvent ( QWindowSystemInterfacePrivate::TabletLeaveProximityEvent * e)
static

Definition at line 3017 of file qguiapplication.cpp.

◆ processThemeChanged()

void QGuiApplicationPrivate::processThemeChanged ( QWindowSystemInterfacePrivate::ThemeChangeEvent * tce)
static

Definition at line 2789 of file qguiapplication.cpp.

◆ processTouchEvent()

void QGuiApplicationPrivate::processTouchEvent ( QWindowSystemInterfacePrivate::TouchEvent * e)
static

Definition at line 3073 of file qguiapplication.cpp.

◆ processWheelEvent()

void QGuiApplicationPrivate::processWheelEvent ( QWindowSystemInterfacePrivate::WheelEvent * e)
static

Definition at line 2512 of file qguiapplication.cpp.

◆ processWindowDevicePixelRatioChangedEvent()

void QGuiApplicationPrivate::processWindowDevicePixelRatioChangedEvent ( QWindowSystemInterfacePrivate::WindowDevicePixelRatioChangedEvent * e)
static

Definition at line 2771 of file qguiapplication.cpp.

◆ processWindowScreenChangedEvent()

void QGuiApplicationPrivate::processWindowScreenChangedEvent ( QWindowSystemInterfacePrivate::WindowScreenChangedEvent * e)
static

Definition at line 2754 of file qguiapplication.cpp.

◆ processWindowStateChangedEvent()

void QGuiApplicationPrivate::processWindowStateChangedEvent ( QWindowSystemInterfacePrivate::WindowStateChangedEvent * e)
static

Definition at line 2736 of file qguiapplication.cpp.

◆ processWindowSystemEvent()

void QGuiApplicationPrivate::processWindowSystemEvent ( QWindowSystemInterfacePrivate::WindowSystemEvent * e)
static

◆ qt_qpa_core_dispatcher()

QAbstractEventDispatcher * QGuiApplicationPrivate::qt_qpa_core_dispatcher ( )
inlinestatic

Definition at line 102 of file qguiapplication_p.h.

◆ qtGuiThreadPool()

QThreadPool * QGuiApplicationPrivate::qtGuiThreadPool ( )
static

Returns the QThreadPool instance for Qt Gui.

Definition at line 4548 of file qguiapplication.cpp.

◆ quit()

void QGuiApplicationPrivate::quit ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 3921 of file qguiapplication.cpp.

◆ resetCachedDevicePixelRatio()

void QGuiApplicationPrivate::resetCachedDevicePixelRatio ( )
static

Definition at line 1205 of file qguiapplication.cpp.

◆ saveState()

void QGuiApplicationPrivate::saveState ( )

Definition at line 4166 of file qguiapplication.cpp.

◆ sendQWindowEventToQPlatformWindow()

bool QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow ( QWindow * window,
QEvent * event )
static

Definition at line 2105 of file qguiapplication.cpp.

◆ setApplicationState()

void QGuiApplicationPrivate::setApplicationState ( Qt::ApplicationState state,
bool forcePropagate = false )
static

Definition at line 4003 of file qguiapplication.cpp.

◆ setPalette()

bool QGuiApplicationPrivate::setPalette ( const QPalette & palette)
staticprotected

Definition at line 3649 of file qguiapplication.cpp.

◆ showModalWindow()

void QGuiApplicationPrivate::showModalWindow ( QWindow * window)
static

Definition at line 889 of file qguiapplication.cpp.

◆ tabletDevicePoint()

QGuiApplicationPrivate::TabletPointData & QGuiApplicationPrivate::tabletDevicePoint ( qint64 deviceId)
static

Definition at line 2894 of file qguiapplication.cpp.

◆ updateBlockedStatus()

void QGuiApplicationPrivate::updateBlockedStatus ( QWindow * window)
static

Definition at line 872 of file qguiapplication.cpp.

◆ updateFilteredScreenOrientation()

void QGuiApplicationPrivate::updateFilteredScreenOrientation ( QScreen * screen)
static

◆ updatePalette()

void QGuiApplicationPrivate::updatePalette ( )
static

Definition at line 3610 of file qguiapplication.cpp.

◆ visualAlignment()

Qt::Alignment QGuiApplicationPrivate::visualAlignment ( Qt::LayoutDirection direction,
Qt::Alignment alignment )
inlinestatic

Definition at line 175 of file qguiapplication_p.h.

◆ windowNeverBlocked()

bool QGuiApplicationPrivate::windowNeverBlocked ( QWindow * window) const
virtual

Reimplemented in QApplicationPrivate.

Definition at line 929 of file qguiapplication.cpp.

◆ QDragManager

friend class QDragManager
friend

Definition at line 363 of file qguiapplication_p.h.

◆ QWindowPrivate

friend class QWindowPrivate
friend

Definition at line 364 of file qguiapplication_p.h.

Member Data Documentation

◆ active_popup_on_press

Q_CONSTINIT const QWindow * QGuiApplicationPrivate::active_popup_on_press = nullptr
static

Definition at line 274 of file qguiapplication_p.h.

◆ app_font

Q_CONSTINIT QFont * QGuiApplicationPrivate::app_font = nullptr
static

Definition at line 282 of file qguiapplication_p.h.

◆ app_icon

Q_CONSTINIT QIcon * QGuiApplicationPrivate::app_icon = nullptr
static

Definition at line 193 of file qguiapplication_p.h.

◆ app_pal

Q_CONSTINIT QPalette * QGuiApplicationPrivate::app_pal = nullptr
static

Definition at line 270 of file qguiapplication_p.h.

◆ applicationState

Q_CONSTINIT Qt::ApplicationState QGuiApplicationPrivate::applicationState = Qt::ApplicationInactive
static

Definition at line 252 of file qguiapplication_p.h.

◆ currentDragWindow

Q_CONSTINIT QPointer< QWindow > QGuiApplicationPrivate::currentDragWindow
static

Definition at line 254 of file qguiapplication_p.h.

◆ currentMousePressWindow

Q_CONSTINIT QWindow * QGuiApplicationPrivate::currentMousePressWindow = nullptr
static

Definition at line 251 of file qguiapplication_p.h.

◆ currentMouseWindow

Q_CONSTINIT QWindow * QGuiApplicationPrivate::currentMouseWindow = nullptr
static

Definition at line 250 of file qguiapplication_p.h.

◆ cursor_list

QList<QCursor> QGuiApplicationPrivate::cursor_list

Definition at line 278 of file qguiapplication_p.h.

◆ desktopFileName

Q_CONSTINIT QString * QGuiApplicationPrivate::desktopFileName = nullptr
static

Definition at line 196 of file qguiapplication_p.h.

◆ displayName

Q_CONSTINIT QString * QGuiApplicationPrivate::displayName = nullptr
static

Definition at line 195 of file qguiapplication_p.h.

◆ firstWindowTitle

QString QGuiApplicationPrivate::firstWindowTitle

Definition at line 290 of file qguiapplication_p.h.

◆ focus_window

Q_CONSTINIT QWindow * QGuiApplicationPrivate::focus_window = nullptr
static

Definition at line 275 of file qguiapplication_p.h.

◆ forcedWindowIcon

QIcon QGuiApplicationPrivate::forcedWindowIcon

Definition at line 291 of file qguiapplication_p.h.

◆ generic_plugin_list

Q_CONSTINIT QList< QObject * > QGuiApplicationPrivate::generic_plugin_list
static

Definition at line 293 of file qguiapplication_p.h.

◆ highDpiScaleFactorRoundingPolicy

Q_CONSTINIT Qt::HighDpiScaleFactorRoundingPolicy QGuiApplicationPrivate::highDpiScaleFactorRoundingPolicy
static

◆ inputMethod

QInputMethod* QGuiApplicationPrivate::inputMethod

Definition at line 288 of file qguiapplication_p.h.

◆ is_saving_session

bool QGuiApplicationPrivate::is_saving_session

Definition at line 301 of file qguiapplication_p.h.

◆ is_session_restored

bool QGuiApplicationPrivate::is_session_restored

Definition at line 300 of file qguiapplication_p.h.

◆ lastCursorPosition

Q_CONSTINIT QGuiApplicationPrivate::QLastCursorPosition QGuiApplicationPrivate::lastCursorPosition
static

Definition at line 134 of file qguiapplication.cpp.

◆ lastTouchType

QEvent::Type QGuiApplicationPrivate::lastTouchType

Definition at line 306 of file qguiapplication_p.h.

◆ modalWindowList

QWindowList QGuiApplicationPrivate::modalWindowList

Definition at line 198 of file qguiapplication_p.h.

◆ modifier_buttons

Q_CONSTINIT Qt::KeyboardModifiers QGuiApplicationPrivate::modifier_buttons = Qt::NoModifier
static

Definition at line 89 of file qguiapplication_p.h.

◆ mouse_buttons

Q_CONSTINIT Qt::MouseButtons QGuiApplicationPrivate::mouse_buttons = Qt::NoButton
static

Definition at line 90 of file qguiapplication_p.h.

◆ mousePressButton

Q_CONSTINIT Qt::MouseButton QGuiApplicationPrivate::mousePressButton = Qt::NoButton
static

Definition at line 212 of file qguiapplication_p.h.

◆ obey_desktop_settings

Q_CONSTINIT bool QGuiApplicationPrivate::obey_desktop_settings = true
static

Definition at line 286 of file qguiapplication_p.h.

◆ ownGlobalShareContext

bool QGuiApplicationPrivate::ownGlobalShareContext = false

Definition at line 346 of file qguiapplication_p.h.

◆ platform_integration

Q_CONSTINIT QPlatformIntegration * QGuiApplicationPrivate::platform_integration = nullptr
static

Definition at line 92 of file qguiapplication_p.h.

◆ platform_name

Q_CONSTINIT QString * QGuiApplicationPrivate::platform_name = nullptr
static

Definition at line 194 of file qguiapplication_p.h.

◆ platform_theme

Q_CONSTINIT QPlatformTheme * QGuiApplicationPrivate::platform_theme = nullptr
static

Definition at line 97 of file qguiapplication_p.h.

◆ popup_closed_on_press

Q_CONSTINIT bool QGuiApplicationPrivate::popup_closed_on_press = false
static

Definition at line 287 of file qguiapplication_p.h.

◆ popup_list

Q_CONSTINIT QWindowList QGuiApplicationPrivate::popup_list
static

Definition at line 273 of file qguiapplication_p.h.

◆ qt_clipboard

Q_CONSTINIT QClipboard * QGuiApplicationPrivate::qt_clipboard = nullptr
static

Definition at line 267 of file qguiapplication_p.h.

◆ quitOnLastWindowClosed

Q_CONSTINIT bool QGuiApplicationPrivate::quitOnLastWindowClosed = true
static

Definition at line 86 of file qguiapplication_p.h.

◆ screen_list

Q_CONSTINIT QList< QScreen * > QGuiApplicationPrivate::screen_list
static

Definition at line 280 of file qguiapplication_p.h.

◆ session_manager

QSessionManager* QGuiApplicationPrivate::session_manager

Definition at line 299 of file qguiapplication_p.h.

◆ styleHints

Q_CONSTINIT QStyleHints * QGuiApplicationPrivate::styleHints = nullptr
static

Definition at line 285 of file qguiapplication_p.h.

◆ styleOverride

Q_CONSTINIT QString QGuiApplicationPrivate::styleOverride
static

Definition at line 284 of file qguiapplication_p.h.

◆ synthesizedMousePoints

QHash<QWindow *, SynthesizedMouseData> QGuiApplicationPrivate::synthesizedMousePoints

Definition at line 314 of file qguiapplication_p.h.

◆ tabletDevicePoints

Q_CONSTINIT QList< QGuiApplicationPrivate::TabletPointData > QGuiApplicationPrivate::tabletDevicePoints
static

Definition at line 263 of file qguiapplication_p.h.

◆ window_list

Q_CONSTINIT QWindowList QGuiApplicationPrivate::window_list
static

Definition at line 272 of file qguiapplication_p.h.


The documentation for this class was generated from the following files: