Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
 
virtual bool popupActive ()
 
virtual bool closeAllPopups ()
 
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
 
void initConsole ()
 
bool sendThroughApplicationEventFilters (QObject *, QEvent *)
 
void ref ()
 
void deref ()
 
void quitAutomatically ()
 
void cleanupThreadData ()
 
void appendApplicationPathToLibraryPaths (void)
 
void execCleanup ()
 
void processCommandLineArguments ()
 
QString qmljsDebugArgumentsString () const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
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
 
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 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 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 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 bool threadRequiresCoreApplication ()
 
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 void setApplicationFilePath (const QString &path)
 
static void clearApplicationFilePath ()
 
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
 
- Public Attributes inherited from QCoreApplicationPrivate
QAtomicInt quitLockRef
 
int & argc
 
char ** argv
 
QTranslatorList translators
 
QReadWriteLock translateMutex
 
QCoreApplicationPrivate::Type application_type
 
QString cachedApplicationDirPath
 
bool in_exec
 
bool aboutToQuitEmitted
 
bool threadData_clean
 
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 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 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 QStringcachedApplicationFilePath = 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
 

Additional Inherited Members

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

Detailed Description

Definition at line 58 of file qguiapplication_p.h.

Constructor & Destructor Documentation

◆ QGuiApplicationPrivate()

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

◆ ~QGuiApplicationPrivate()

Member Function Documentation

◆ _q_updateFocusObject()

void QGuiApplicationPrivate::_q_updateFocusObject ( QObject * object)

Definition at line 4333 of file qguiapplication.cpp.

References emit, QInputMethodPrivate::objectAcceptsInputMethod(), platformIntegration(), QPlatformInputContext::setFocusObject(), and QPlatformInputContextPrivate::setInputMethodAccepted().

Referenced by processFocusWindowEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyQIconStyleHelper()

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

Reimplemented in QApplicationPrivate.

Definition at line 307 of file qguiapplication_p.h.

◆ applyWindowGeometrySpecificationTo()

void QGuiApplicationPrivate::applyWindowGeometrySpecificationTo ( QWindow * window)
static

Definition at line 3524 of file qguiapplication.cpp.

References window(), and windowGeometrySpecification.

Referenced by QWindowPrivate::setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ basePalette()

QPalette QGuiApplicationPrivate::basePalette ( ) const
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 3498 of file qguiapplication.cpp.

References Qt::gray, and platformTheme().

Referenced by setPalette().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ canQuitAutomatically()

bool QGuiApplicationPrivate::canQuitAutomatically ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 3728 of file qguiapplication.cpp.

References QCoreApplicationPrivate::canQuitAutomatically(), and lastWindowClosed().

Referenced by maybeLastWindowClosed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ captureGlobalModifierState()

void QGuiApplicationPrivate::captureGlobalModifierState ( QEvent * e)
static

Definition at line 1929 of file qguiapplication.cpp.

References QSinglePointEvent::button(), QEvent::KeyPress, QEvent::KeyRelease, modifier_buttons, QInputEvent::modifiers(), mouse_buttons, QEvent::MouseButtonDblClick, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QEvent::spontaneous(), QEvent::TabletMove, QEvent::TabletPress, QEvent::TabletRelease, QEvent::TouchBegin, QEvent::TouchEnd, QEvent::TouchUpdate, QEvent::type(), and QEvent::Wheel.

Referenced by QGuiApplication::notify(), and QApplication::notify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ closeAllPopups()

virtual bool QGuiApplicationPrivate::closeAllPopups ( )
inlinevirtual

Reimplemented in QApplicationPrivate.

Definition at line 200 of file qguiapplication_p.h.

◆ colorProfileForA32Text()

const QColorTrcLut * QGuiApplicationPrivate::colorProfileForA32Text ( )

Definition at line 4326 of file qguiapplication.cpp.

References fontSmoothingGamma, and QColorTrcLut::fromGamma().

Referenced by colorProfileForA8Text().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ colorProfileForA8Text()

const QColorTrcLut * QGuiApplicationPrivate::colorProfileForA8Text ( )

Definition at line 4315 of file qguiapplication.cpp.

References colorProfileForA32Text(), and QColorTrcLut::fromGamma().

+ Here is the call graph for this function:

◆ commitData()

void QGuiApplicationPrivate::commitData ( )

Definition at line 3978 of file qguiapplication.cpp.

References emit, is_saving_session, and session_manager.

Referenced by QWindowsContext::windowsProc().

+ Here is the caller graph for this function:

◆ 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 1546 of file qguiapplication.cpp.

References createPlatformIntegration(), QCoreApplicationPrivate::eventDispatcher, QBasicAtomicPointer< X >::loadRelaxed(), platform_integration, Q_ASSERT, Q_ASSERT_X, and QObjectPrivate::threadData.

Referenced by QApplicationPrivate::createEventDispatcher().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPlatformIntegration()

void QGuiApplicationPrivate::createPlatformIntegration ( )

◆ 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 901 of file qguiapplication.cpp.

References Qt::NonModal.

Referenced by isWindowBlocked().

+ Here is the caller graph for this function:

◆ eventDispatcherReady()

void QGuiApplicationPrivate::eventDispatcherReady ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 1563 of file qguiapplication.cpp.

References createPlatformIntegration(), and platform_integration.

+ Here is the call graph for this function:

◆ getPixmapCursor()

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

Definition at line 4293 of file qguiapplication.cpp.

References Q_UNUSED.

◆ handlePaletteChanged()

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

Reimplemented in QApplicationPrivate.

Definition at line 3504 of file qguiapplication.cpp.

References app_pal, QEvent::ApplicationPaletteChange, className, emit, QCoreApplicationPrivate::is_app_closing, QCoreApplicationPrivate::is_app_running, Q_ASSERT, Q_UNUSED, qGuiApp, QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, QT_WARNING_PUSH, and QCoreApplication::sendEvent().

Referenced by QApplicationPrivate::handlePaletteChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleThemeChanged()

void QGuiApplicationPrivate::handleThemeChanged ( )
protectedvirtual

Reimplemented in QApplicationPrivate.

Definition at line 2652 of file qguiapplication.cpp.

References ApplicationFontExplicitlySet, applicationFontMutex, applicationResourceFlags, clearFontUnlocked(), QAbstractFileIconProviderPrivate::clearIconTypeCache(), QStyleHintsPrivate::get(), initFontUnlocked(), initThemeHints(), QIconLoader::instance(), platformTheme(), QGuiApplication::styleHints(), Qt::Unknown, and updatePalette().

Referenced by QApplicationPrivate::handleThemeChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hideModalWindow()

void QGuiApplicationPrivate::hideModalWindow ( QWindow * window)
static

Definition at line 891 of file qguiapplication.cpp.

References needsWindowBlockedEvent(), updateBlockedStatus(), window(), and window_list.

Referenced by QWidgetPrivate::hide_sys(), and QWindowPrivate::setVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

void QGuiApplicationPrivate::init ( )

Referenced by QApplicationPrivate::init().

+ Here is the caller graph for this function:

◆ inputDeviceManager()

◆ instance()

static QGuiApplicationPrivate * QGuiApplicationPrivate::instance ( )
inlinestatic

Definition at line 184 of file qguiapplication_p.h.

Referenced by QCocoaMenuBar::QCocoaMenuBar(), QShortcut::QShortcut(), QShortcut::QShortcut(), QAction::~QAction(), QShortcut::~QShortcut(), QWidget::~QWidget(), QCocoaWindow::closeAllPopups(), QFontEngineMulti::createMultiFontEngine(), QDragManager::drag(), QDrag::dragCursor(), QAbstractItemDelegatePrivate::editorEventFilter(), QWindow::event(), QWidget::grabShortcut(), QGraphicsWidget::grabShortcut(), QQuickShortcut::grabShortcut(), QWindowSystemInterface::handleShortcutEvent(), QQuickFolderBreadcrumbBarPrivate::handleTextFieldHidden(), QCocoaSessionManager::instance(), QQuickFolderBreadcrumbBar::itemChange(), QWasmWindow::onNonClientAreaInteraction(), QOpenGLContext::openGLModuleType(), QSvgIconEngine::pixmap(), qGamma_correct_back_to_linear_cs(), qt_alphamapblit_argb32(), qt_alphamapblit_generic(), qt_alphargbblit_argb32(), qt_alphargbblit_generic(), qt_mac_applicationName(), qt_pixmap_thread_test(), qt_sendShortcutOverrideEvent(), QXcbWindow::relayFocusToModalWindow(), QGraphicsWidget::releaseShortcut(), QWidget::releaseShortcut(), QWasmWindow::requestActivateWindow(), QShortcut::setAutoRepeat(), QQuickShortcut::setAutoRepeat(), QShortcut::setContext(), QShortcut::setEnabled(), QActionPrivate::setEnabled(), QQuickShortcut::setEnabled(), QShortcut::setKeys(), QWidget::setShortcutAutoRepeat(), QGraphicsWidget::setShortcutAutoRepeat(), QWidget::setShortcutEnabled(), QGraphicsWidget::setShortcutEnabled(), QCocoaWindow::setupPopupMonitor(), QWindowPrivate::setVisible(), QCocoaWindow::shouldRefuseKeyWindowAndFirstResponder(), QSurface::supportsOpenGL(), QOpenGLContext::supportsThreadedOpenGL(), QQuickFolderBreadcrumbBarPrivate::ungrabEditPathShortcut(), and QQuickShortcut::ungrabShortcut().

◆ isWindowBlocked()

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

Definition at line 917 of file qguiapplication.cpp.

References Qt::ApplicationModal, QList< T >::at(), defaultModality(), i, QList< T >::isEmpty(), QWindow::modality, modalWindowList, Qt::NonModal, Q_ASSERT_X, Q_FUNC_INFO, QList< T >::size(), QObjectData::unused, window(), Qt::WindowModal, and windowNeverBlocked().

+ Here is the call graph for this function:

◆ lastWindowClosed()

bool QGuiApplicationPrivate::lastWindowClosed ( ) const

Definition at line 3714 of file qguiapplication.cpp.

References qt_window_private(), QGuiApplication::topLevelWindows(), and window().

Referenced by canQuitAutomatically(), and maybeLastWindowClosed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ maybeLastWindowClosed()

void QGuiApplicationPrivate::maybeLastWindowClosed ( )

Definition at line 3689 of file qguiapplication.cpp.

References canQuitAutomatically(), emit, QCoreApplicationPrivate::in_exec, lastWindowClosed(), QCoreApplicationPrivate::quitAutomatically(), and quitOnLastWindowClosed.

+ Here is the call graph for this function:

◆ notifyActiveWindowChange()

void QGuiApplicationPrivate::notifyActiveWindowChange ( QWindow * previous)
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3615 of file qguiapplication.cpp.

References focus_window, QCoreApplication::sendEvent(), QEvent::WindowActivate, and QEvent::WindowDeactivate.

+ Here is the call graph for this function:

◆ notifyLayoutDirectionChange()

void QGuiApplicationPrivate::notifyLayoutDirectionChange ( )
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3606 of file qguiapplication.cpp.

References QEvent::ApplicationLayoutDirectionChange, QList< T >::at(), i, list, QCoreApplication::sendEvent(), QList< T >::size(), and QGuiApplication::topLevelWindows().

+ Here is the call graph for this function:

◆ notifyWindowIconChanged()

void QGuiApplicationPrivate::notifyWindowIconChanged ( )
virtual

Reimplemented in QApplicationPrivate.

Definition at line 3650 of file qguiapplication.cpp.

References QEvent::ApplicationWindowIconChange, QList< T >::at(), i, list, QCoreApplication::sendEvent(), QList< T >::size(), and QGuiApplication::topLevelWindows().

+ Here is the call graph for this function:

◆ platformIntegration()

static QPlatformIntegration * QGuiApplicationPrivate::platformIntegration ( )
inlinestatic

Definition at line 90 of file qguiapplication_p.h.

Referenced by QEglFSKmsInterruptHandler::QEglFSKmsInterruptHandler(), QOpenGLWidget::QOpenGLWidget(), QRhiWidget::QRhiWidget(), QSessionManagerPrivate::QSessionManagerPrivate(), QVideoWindowPrivate::QVideoWindowPrivate(), QWindowsMimeConverter::QWindowsMimeConverter(), TextureSharingExtension::TextureSharingExtension(), QtFontStyle::~QtFontStyle(), QWindowsFontEngine::~QWindowsFontEngine(), QWindowsFontEngineDirectWrite::~QWindowsFontEngineDirectWrite(), QWindowsMimeConverter::~QWindowsMimeConverter(), _q_updateFocusObject(), QFontDatabasePrivate::addAppFont(), QXcbNativeInterface::atspiBus(), QApplication::beep(), QDrag::cancel(), QWindowsFontEngine::cloneWithSize(), QWindowsFontEngineDirectWrite::cloneWithSize(), contextFactory(), QOffscreenSurface::create(), QOpenGLContext::create(), QBackingStoreRhiSupport::create(), QWidgetPrivate::create(), QWindowPrivate::create(), QPlatformPixmap::create(), QPlatformPixmap::createCompatiblePlatformPixmap(), QtWaylandClient::QWaylandWindow::createDecoration(), QPaintEngine::createPixmap(), QPaintEngine::createPixmapFromImage(), QCocoaTheme::createPlatformMenuBar(), createTreeViewHelperWindow(), QAndroidPlatformNativeInterface::customEvent(), QtWaylandClient::QWaylandDataDevice::data_device_selection(), QFontDatabasePrivate::ensureFontDatabase(), QtFontFamily::ensurePopulated(), QWindowContainer::event(), QQuickColorDialogImplPrivate::eyeDropperEnter(), fallbacksForFamily(), QFontDatabasePrivate::findFont(), QCocoaTheme::font(), QIOSTheme::font(), QPixmap::fromImage(), QPixmap::fromImageInPlace(), QPixmap::fromImageReader(), QBackingStore::handle(), QEglFSScreen::handleCursorMove(), QXcbKeyboard::handleKeyEvent(), QWidgetWindow::handleMouseEvent(), hint(), QQuickWidgetPrivate::init(), QQuickContext2D::init(), init_platform(), initFontDef(), initFontUnlocked(), QXcbKeyboard::initialize(), initializeRHI(), QIOSIntegration::instance(), QMinimalIntegration::instance(), QSGRenderLoop::instance(), QFontDatabasePrivate::invalidate(), QtWaylandClient::QWaylandDataDevice::invalidateSelectionOffer(), QtWaylandClient::QWaylandPrimarySelectionDeviceV1::invalidateSelectionOffer(), QFontDatabase::isPrivateFamily(), QQuickPixmap::load(), QRawFontPrivate::loadFromData(), makeBitmap(), QClipboard::mimeData(), QDesktopServices::openUrl(), QImage::paintEngine(), QColorDialogPrivate::pickScreenColor(), QGuiApplication::platformFunction(), QInputMethodPrivate::platformInputContext(), QGuiApplication::platformNativeInterface(), platformSupportsHiddenText(), platformSurfaceType(), QFontDatabase::pointSizes(), QWindowsVistaStyle::polish(), QQuickMenu::popup(), QPlatformKeyMapper::possibleKeyCombinations(), QKeyMapper::possibleKeys(), SharedTextureRegistry::preinitialize(), processExposeEvent(), processFocusWindowEvent(), processPaintEvent(), QT_DEFINE_QPA_EVENT_HANDLER(), qt_painter_thread_test(), qt_pixmap_thread_test(), qt_registerFont(), QGuiApplication::queryKeyboardModifiers(), QPlatformKeyMapper::queryKeyboardModifiers(), quit(), QTest::qWaitForWindowActive(), QTest::qWaitForWindowActive(), QQC2::QWindowsStyle::refreshPalette(), QWindowsMimeConverter::registerMimeType(), QPlatformScreen::resizeMaximizedWindows(), QFontDatabasePrivate::resolveFontFamilyAlias(), QWidget::setAttribute(), QGuiApplication::setBadgeNumber(), QWidgetPrivate::setGeometry_sys(), QClipboard::setMimeData(), QQuickColorDialogImpl::setOptions(), QtWaylandClient::QWaylandPrimarySelectionDeviceV1::setSelectionSource(), QBackingStore::setStaticContents(), shouldCascade(), QWindow::show(), QWidget::show(), QGtk3Dialog::show(), QWidgetPrivate::show_sys(), QFontDatabase::smoothSizes(), QFontDatabase::standardSizes(), QQuickDragAttachedPrivate::startDrag(), QColorDialogPrivate::supportsColorPicking(), QQuickApplication::supportsMultipleWindows(), QFontDatabase::systemFont(), QtWaylandClient::QWaylandTextInputMethod::text_input_method_v1_keyboard_rectangle_changed(), QtWaylandClient::QWaylandTextInputMethod::text_input_method_v1_visible_changed(), themeableHint(), QPlatformTheme::themeHint(), QAndroidPlatformTheme::themeHint(), QGenericUnixTheme::themeNames(), QtWaylandClient::QWaylandPrimarySelectionDeviceV1::zwp_primary_selection_device_v1_selection(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_input_panel_state(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_language(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_text_direction(), QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_input_panel_state(), QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_language(), and QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_text_direction().

◆ platformTheme()

static QPlatformTheme * QGuiApplicationPrivate::platformTheme ( )
inlinestatic

Definition at line 95 of file qguiapplication_p.h.

Referenced by QQuickLabsPlatformMenuBar::QQuickLabsPlatformMenuBar(), QQuickLabsPlatformSystemTrayIcon::QQuickLabsPlatformSystemTrayIcon(), QtWaylandClient::QWaylandAdwaitaDecoration::QWaylandAdwaitaDecoration(), QQuickAbstractButtonPrivate::acceptKeyClick(), QMessageBox::addButton(), QDialog::adjustPosition(), basePalette(), QApplicationPrivate::basePalette(), QQuickDialogButtonBoxPrivate::buttonText(), QDialogPrivate::canBeNativeDialog(), QComboBox::changeEvent(), QQuickLabsPlatformDialog::create(), QQuickLabsPlatformMenu::create(), QQuickLabsPlatformMenuItem::create(), QQuickAbstractDialog::create(), QDialogButtonBoxPrivate::createButton(), QPlatformMenuBar::createMenu(), QPlatformSystemTrayIcon::createMenu(), QPlatformMenu::createMenuItem(), createPlatformIntegration(), QMenuPrivate::createPlatformMenu(), QPlatformMenu::createSubMenu(), QPlatformThemePrivate::currentKeyPlatforms(), QQuickDeliveryAgentPrivate::deliverTouchAsMouse(), QApplicationPrivate::desktopStyleKey(), drawTextItemDecoration(), dropShadow(), QIconLoader::ensureInitialized(), QWindow::event(), QGroupBox::event(), QQuickMenuBar::eventFilter(), QQuickTheme::font(), QAbstractFileIconProviderPrivate::getPlatformThemeIcon(), QAbstractFileIconProviderPrivate::getPlatformThemeIcon(), QQuickPlatformTheme::getThemeHint(), QWidgetWindow::handleMouseEvent(), QQuickFlickablePrivate::handleReleaseEvent(), handleThemeChanged(), QMessageBoxPrivate::helperPrepareShow(), QIconLoader::iconEngine(), QCommonStylePrivate::iconFromMacTheme(), QCommonStylePrivate::iconFromWindowsTheme(), QCoreTextFontEngine::imageForGlyph(), QMenuBarPrivate::init(), initFontUnlocked(), QApplicationPrivate::initialize(), QApplicationPrivate::initializeWidgetFontHash(), QApplicationPrivate::initializeWidgetPalettesFromTheme(), initThemeHints(), isDarkMode(), QQuickStylePrivate::isDarkSystemTheme(), QSystemTrayIconPrivate::isSystemTrayAvailable_sys(), QKeySequence::keyBindings(), QAbstractButton::keyPressEvent(), QComboBox::keyPressEvent(), QQuickComboBox::keyPressEvent(), QAbstractButton::keyReleaseEvent(), QQuickComboBox::keyReleaseEvent(), QSizeGrip::mousePressEvent(), QQuickTheme::palette(), QQC2::QCommonStyle::pixelMetric(), QCommonStyle::pixelMetric(), platformButtonLayout(), QDialogPrivate::platformHelper(), QMacStyle::polish(), qt_fusionPalette(), qt_init_tooltip_palette(), QDialogButtonBoxPrivate::retranslateStrings(), QMenuBar::setNativeMenuBar(), QDialogPrivate::setVisible(), QCocoaMessageDialog::show(), QXcbCursor::size(), QQC2::QCommonStyle::standardIcon(), QMacStyle::standardPalette(), QQC2::QWindowsStyle::standardPixmap(), QCommonStyle::styleHint(), QQC2::QCommonStyle::styleHint(), QSystemTrayIconPrivate::supportsMessages_sys(), systemFallbackSearchPaths(), systemFallbackThemeName(), QFontDatabase::systemFont(), systemIconSearchPaths(), systemThemeName(), themeableHint(), themeableHint(), QQuickFileDialogImplPrivate::updateSelectedFile(), QStylePrivate::useFullScreenForPopup(), QQC2::QStylePrivate::useFullScreenForPopup(), QQuickLabsPlatformDialog::useNativeDialog(), and QQuickAbstractDialog::useNativeDialog().

◆ popupActive()

virtual bool QGuiApplicationPrivate::popupActive ( )
inlinevirtual

Reimplemented in QApplicationPrivate.

Definition at line 199 of file qguiapplication_p.h.

◆ processApplicationTermination()

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

Definition at line 3750 of file qguiapplication.cpp.

References QCoreApplication::instance(), and QEvent::Quit.

+ Here is the call graph for this function:

◆ processCloseEvent()

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

Definition at line 2723 of file qguiapplication.cpp.

References QPointer< T >::data(), QWindowSystemInterfacePrivate::WindowSystemEvent::eventAccepted, QPointer< T >::isNull(), and QWindowSystemInterfacePrivate::CloseEvent::window.

+ Here is the call graph for this function:

◆ processContextMenuEvent()

◆ processEnterEvent()

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

Definition at line 2473 of file qguiapplication.cpp.

References currentMouseWindow, QPointer< T >::data(), QWindowSystemInterfacePrivate::EnterEvent::enter, QPointingDevicePrivate::get(), QWindowSystemInterfacePrivate::EnterEvent::globalPos, QWindowSystemInterfacePrivate::EnterEvent::localPos, and Q_ASSERT.

+ Here is the call graph for this function:

◆ processExposeEvent()

◆ processFileOpenEvent()

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

Definition at line 2740 of file qguiapplication.cpp.

References QUrl::isEmpty(), qApp, and QWindowSystemInterfacePrivate::FileOpenEvent::url.

+ Here is the call graph for this function:

◆ processFocusWindowEvent()

◆ processGeometryChangeEvent()

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

Definition at line 2671 of file qguiapplication.cpp.

References QPointer< T >::data(), emit, QPointer< T >::isNull(), QWindowSystemInterfacePrivate::GeometryChangeEvent::newGeometry, QWindowSystemInterfacePrivate::GeometryChangeEvent::requestedGeometry, QRect::size(), QRect::topLeft(), QWindowSystemInterfacePrivate::GeometryChangeEvent::window, and window().

+ Here is the call graph for this function:

◆ processGestureEvent()

◆ processKeyEvent()

◆ processLeaveEvent()

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

Definition at line 2500 of file qguiapplication.cpp.

References currentMouseWindow, QPointer< T >::data(), QEvent::Leave, and QWindowSystemInterfacePrivate::LeaveEvent::leave.

+ Here is the call graph for this function:

◆ 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 2200 of file qguiapplication.cpp.

References Qt::AA_SynthesizeTouchForUnhandledMouseEvents, QWindowSystemInterface::TouchPoint::area, button, QWindowSystemInterfacePrivate::MouseEvent::button, QWindowSystemInterfacePrivate::MouseEvent::buttons, QWindowSystemInterfacePrivate::MouseEvent::buttonType, currentMousePressWindow, cursor, QPlatformScreen::cursor(), QPointer< T >::data(), QWindowSystemInterfacePrivate::InputEvent::device, device, QWindowSystemInterfacePrivate::WindowSystemEvent::eventAccepted, QWindowSystemInterfacePrivate::WindowSystemEvent::flags, QMutableSinglePointEvent::from(), QWindowSystemInterfacePrivate::fromNativeTouchPoints(), QPointingDevicePrivate::get(), QWindowSystemInterfacePrivate::MouseEvent::globalPos, QScreen::handle(), QWindowSystemInterface::TouchPoint::id, QPointer< T >::isNull(), lastCursorPosition, Qt::LeftButton, QWindowSystemInterfacePrivate::MouseEvent::localPos, modifier_buttons, QWindowSystemInterfacePrivate::InputEvent::modifiers, QInputDevice::Mouse, mouse_buttons, QEvent::MouseButtonDblClick, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, mouseDoubleClickDistance, QEvent::MouseMove, mousePressButton, Qt::NoButton, QWindowSystemInterfacePrivate::MouseEvent::nonClientArea, QEvent::NonClientAreaMouseButtonDblClick, QEvent::NonClientAreaMouseButtonPress, QEvent::NonClientAreaMouseMove, QEvent::None, QWindowSystemInterfacePrivate::WindowSystemEvent::nullWindow(), QEventPoint::Pressed, processMouseEvent(), processTouchEvent(), Q_ASSERT, qAbs(), qApp, qIsNaN(), qWarning, QEventPoint::Released, screen, QWindowSystemInterfacePrivate::MouseEvent::source, QWindowSystemInterface::TouchPoint::state, QGuiApplication::styleHints(), QWindowSystemInterfacePrivate::WindowSystemEvent::Synthetic, QWindowSystemInterfacePrivate::WindowSystemEvent::synthetic(), QWindowSystemInterfacePrivate::UserEvent::timestamp, QHighDpi::toNativePixels(), QGuiApplication::topLevelAt(), touchDoubleTapDistance, QInputDevice::type, QEventPoint::Updated, QWindowSystemInterfacePrivate::UserEvent::window, window(), QPointF::x(), and QPointF::y().

Referenced by processMouseEvent(), processTabletEvent(), and processTouchEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processNativeEvent()

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

Definition at line 2059 of file qguiapplication.cpp.

References window().

Referenced by QWindowSystemInterface::handleNativeEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processPaintEvent()

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

Definition at line 3302 of file qguiapplication.cpp.

References QWindowSystemInterfacePrivate::WindowSystemEvent::eventAccepted, QEvent::isAccepted(), QPlatformIntegration::PaintEvents, platformIntegration(), Q_ASSERT_X, QWindowSystemInterfacePrivate::PaintEvent::region, and QWindowSystemInterfacePrivate::PaintEvent::window.

+ Here is the call graph for this function:

◆ processPlatformPanelEvent()

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

Definition at line 2886 of file qguiapplication.cpp.

References QPointer< T >::data(), QEvent::PlatformPanel, and QWindowSystemInterfacePrivate::PlatformPanelEvent::window.

+ Here is the call graph for this function:

◆ processSafeAreaMarginsChangedEvent()

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

Definition at line 2628 of file qguiapplication.cpp.

References qt_window_private().

+ Here is the call graph for this function:

◆ processScreenGeometryChange()

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

Definition at line 3161 of file qguiapplication.cpp.

References QWindowSystemInterfacePrivate::ScreenGeometryEvent::availableGeometry, QPointer< T >::data(), QWindowSystemInterfacePrivate::ScreenGeometryEvent::geometry, resetCachedDevicePixelRatio(), QWindowSystemInterfacePrivate::ScreenGeometryEvent::screen, and QCoreApplication::startingUp().

+ Here is the call graph for this function:

◆ processScreenLogicalDotsPerInchChange()

◆ processScreenOrientationChange()

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

Definition at line 3143 of file qguiapplication.cpp.

References QPointer< T >::data(), emit, QCoreApplication::instance(), QScreen::orientation, QWindowSystemInterfacePrivate::ScreenOrientationEvent::orientation, QWindowSystemInterfacePrivate::ScreenOrientationEvent::screen, QCoreApplication::sendEvent(), and QCoreApplication::startingUp().

+ Here is the call graph for this function:

◆ processScreenRefreshRateChange()

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

Definition at line 3210 of file qguiapplication.cpp.

References QPointer< T >::data(), emit, qFuzzyCompare(), QWindowSystemInterfacePrivate::ScreenRefreshRateEvent::rate, QWindowSystemInterfacePrivate::ScreenRefreshRateEvent::screen, and QCoreApplication::startingUp().

+ Here is the call graph for this function:

◆ processTabletEnterProximityEvent()

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

Definition at line 2844 of file qguiapplication.cpp.

References QWindowSystemInterfacePrivate::InputEvent::device, QWindowSystemInterfacePrivate::InputEvent::modifiers, Qt::NoButton, QPointingDeviceUniqueId::numericId, Q_UNUSED, qGuiApp, tabletDevicePoint(), QEvent::TabletEnterProximity, QWindowSystemInterfacePrivate::UserEvent::timestamp, and QPointingDevice::uniqueId.

+ Here is the call graph for this function:

◆ processTabletEvent()

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

Definition at line 2761 of file qguiapplication.cpp.

References Qt::AA_SynthesizeMouseForUnhandledTabletEvents, button, QWindowSystemInterfacePrivate::TabletEvent::buttons, QPointer< T >::data(), QWindowSystemInterfacePrivate::InputEvent::device, device, QWindowSystemInterfacePrivate::WindowSystemEvent::flags, QWindowSystemInterfacePrivate::TabletEvent::global, Qt::LeftButton, QWindowSystemInterfacePrivate::TabletEvent::local, Qt::MaxMouseButton, modifier_buttons, QWindowSystemInterfacePrivate::InputEvent::modifiers, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, Qt::MouseEventNotSynthesized, QEvent::MouseMove, Qt::NoButton, QWindowSystemInterfacePrivate::WindowSystemEvent::nullWindow(), QWindowSystemInterfacePrivate::TabletEvent::platformSynthesizesMouse, QWindowSystemInterfacePrivate::TabletEvent::pressure, processMouseEvent(), Q_UNUSED, qApp, qCDebug, QWindowSystemInterfacePrivate::TabletEvent::rotation, QWindowSystemInterfacePrivate::WindowSystemEvent::Synthetic, tabletDevicePoint(), QEvent::TabletMove, QEvent::TabletPress, QEvent::TabletRelease, QWindowSystemInterfacePrivate::TabletEvent::tangentialPressure, QWindowSystemInterfacePrivate::UserEvent::timestamp, QGuiApplication::topLevelAt(), QPointF::toPoint(), QWindowSystemInterfacePrivate::UserEvent::window, window(), QWindowSystemInterfacePrivate::TabletEvent::xTilt, QWindowSystemInterfacePrivate::TabletEvent::yTilt, and QWindowSystemInterfacePrivate::TabletEvent::z.

+ Here is the call graph for this function:

◆ processTabletLeaveProximityEvent()

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

Definition at line 2858 of file qguiapplication.cpp.

References QWindowSystemInterfacePrivate::InputEvent::device, QWindowSystemInterfacePrivate::InputEvent::modifiers, Qt::NoButton, QPointingDeviceUniqueId::numericId, Q_UNUSED, qGuiApp, tabletDevicePoint(), QEvent::TabletLeaveProximity, QWindowSystemInterfacePrivate::UserEvent::timestamp, and QPointingDevice::uniqueId.

+ Here is the call graph for this function:

◆ processThemeChanged()

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

Definition at line 2639 of file qguiapplication.cpp.

References QIconPrivate::clearIconCache(), QEvent::ThemeChange, window(), and window_list.

+ Here is the call graph for this function:

◆ processTouchEvent()

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

◆ processWheelEvent()

◆ processWindowDevicePixelRatioChangedEvent()

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

Definition at line 2621 of file qguiapplication.cpp.

References QWindowPrivate::get().

+ Here is the call graph for this function:

◆ processWindowScreenChangedEvent()

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

Definition at line 2604 of file qguiapplication.cpp.

References screen, and window().

+ Here is the call graph for this function:

◆ processWindowStateChangedEvent()

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

Definition at line 2586 of file qguiapplication.cpp.

References QWindowPrivate::effectiveState(), emit, qt_window_private(), and window().

+ Here is the call graph for this function:

◆ processWindowSystemEvent()

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

◆ qt_qpa_core_dispatcher()

static QAbstractEventDispatcher * QGuiApplicationPrivate::qt_qpa_core_dispatcher ( )
inlinestatic

Definition at line 98 of file qguiapplication_p.h.

References QCoreApplication::instance().

Referenced by QWindowSystemHelper< Delivery >::handleEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ quit()

void QGuiApplicationPrivate::quit ( )
overridevirtual

Reimplemented from QCoreApplicationPrivate.

Definition at line 3742 of file qguiapplication.cpp.

References platformIntegration(), and QCoreApplicationPrivate::quit().

+ Here is the call graph for this function:

◆ resetCachedDevicePixelRatio()

void QGuiApplicationPrivate::resetCachedDevicePixelRatio ( )
static

Definition at line 1151 of file qguiapplication.cpp.

Referenced by QWindowSystemInterface::handleScreenAdded(), QWindowSystemInterface::handleScreenRemoved(), processScreenGeometryChange(), and processScreenLogicalDotsPerInchChange().

+ Here is the caller graph for this function:

◆ saveState()

void QGuiApplicationPrivate::saveState ( )

Definition at line 3987 of file qguiapplication.cpp.

References emit, is_saving_session, and session_manager.

◆ sendQWindowEventToQPlatformWindow()

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

Definition at line 2045 of file qguiapplication.cpp.

References window(), and QPlatformWindow::windowEvent().

Referenced by QGuiApplication::notify(), and QApplication::notify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setApplicationState()

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

Definition at line 3824 of file qguiapplication.cpp.

References QEvent::ApplicationActivate, Qt::ApplicationActive, QEvent::ApplicationDeactivate, Qt::ApplicationInactive, applicationState, emit, qApp, and state.

Referenced by processFocusWindowEvent().

+ Here is the caller graph for this function:

◆ setPalette()

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

Definition at line 3470 of file qguiapplication.cpp.

References Qt::AA_SetPalette, app_pal, basePalette(), Qt::gray, palette, qGuiApp, QPalette::resolve(), QPalette::resolveMask(), and QCoreApplication::setAttribute().

Referenced by QGuiApplication::setPalette(), and updatePalette().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showModalWindow()

void QGuiApplicationPrivate::showModalWindow ( QWindow * window)
static

Definition at line 866 of file qguiapplication.cpp.

References currentMouseWindow, QWindowPrivate::get(), QEvent::Leave, needsWindowBlockedEvent(), QCoreApplication::sendEvent(), updateBlockedStatus(), window(), and window_list.

Referenced by QWindowPrivate::setVisible(), and QWidgetPrivate::show_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tabletDevicePoint()

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

Definition at line 2749 of file qguiapplication.cpp.

References i, and tabletDevicePoints.

Referenced by processTabletEnterProximityEvent(), processTabletEvent(), processTabletLeaveProximityEvent(), and QWindowsTabletSupport::translateTabletPacketEvent().

+ Here is the caller graph for this function:

◆ updateBlockedStatus()

void QGuiApplicationPrivate::updateBlockedStatus ( QWindow * window)
static

Definition at line 849 of file qguiapplication.cpp.

References Qt::Popup, Qt::ToolTip, updateBlockedStatusRecursion(), and window().

Referenced by hideModalWindow(), QWindowPrivate::setVisible(), and showModalWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFilteredScreenOrientation()

static void QGuiApplicationPrivate::updateFilteredScreenOrientation ( QScreen * screen)
static

◆ updatePalette()

void QGuiApplicationPrivate::updatePalette ( )
static

Definition at line 3440 of file qguiapplication.cpp.

References app_pal, qGuiApp, and setPalette().

Referenced by handleThemeChanged(), QGuiApplication::palette(), Q_TRACE_INSTRUMENT(), QApplication::setStyle(), and QApplication::style().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ visualAlignment()

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

Definition at line 168 of file qguiapplication_p.h.

References Qt::AlignAbsolute, Qt::AlignHorizontal_Mask, Qt::AlignLeft, alignment, Qt::AlignRight, direction, and Qt::RightToLeft.

Referenced by alignedRect(), alignedRect(), QTextDocumentLayoutPrivate::layoutBlock(), QIcon::paint(), QStyle::visualAlignment(), and QQC2::QStyle::visualAlignment().

+ Here is the caller graph for this function:

◆ windowNeverBlocked()

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

Reimplemented in QApplicationPrivate.

Definition at line 906 of file qguiapplication.cpp.

References Q_UNUSED, and window().

Referenced by isWindowBlocked().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QDragManager

friend class QDragManager
friend

Definition at line 340 of file qguiapplication_p.h.

Member Data Documentation

◆ app_font

Q_CONSTINIT QFont * QGuiApplicationPrivate::app_font = nullptr
static

◆ app_icon

Q_CONSTINIT QIcon * QGuiApplicationPrivate::app_icon = nullptr
static

◆ app_pal

Q_CONSTINIT QPalette * QGuiApplicationPrivate::app_pal = nullptr
static

◆ applicationState

◆ currentDragWindow

Q_CONSTINIT QPointer< QWindow > QGuiApplicationPrivate::currentDragWindow
static

Definition at line 242 of file qguiapplication_p.h.

Referenced by QGuiApplication::~QGuiApplication().

◆ currentMousePressWindow

Q_CONSTINIT QWindow * QGuiApplicationPrivate::currentMousePressWindow = nullptr
static

◆ currentMouseWindow

◆ cursor_list

QList<QCursor> QGuiApplicationPrivate::cursor_list

Definition at line 264 of file qguiapplication_p.h.

◆ desktopFileName

Q_CONSTINIT QString * QGuiApplicationPrivate::desktopFileName = nullptr
static

◆ displayName

Q_CONSTINIT QString * QGuiApplicationPrivate::displayName = nullptr
static

◆ firstWindowTitle

QString QGuiApplicationPrivate::firstWindowTitle

Definition at line 275 of file qguiapplication_p.h.

Referenced by createPlatformIntegration().

◆ focus_window

◆ forcedWindowIcon

QIcon QGuiApplicationPrivate::forcedWindowIcon

Definition at line 276 of file qguiapplication_p.h.

Referenced by createPlatformIntegration().

◆ generic_plugin_list

Q_CONSTINIT QList< QObject * > QGuiApplicationPrivate::generic_plugin_list
static

Definition at line 278 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate(), and init_plugins().

◆ highDpiScaleFactorRoundingPolicy

◆ inputMethod

QInputMethod* QGuiApplicationPrivate::inputMethod

Definition at line 273 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate().

◆ is_saving_session

bool QGuiApplicationPrivate::is_saving_session

Definition at line 286 of file qguiapplication_p.h.

Referenced by QGuiApplicationPrivate(), commitData(), and saveState().

◆ is_session_restored

bool QGuiApplicationPrivate::is_session_restored

Definition at line 285 of file qguiapplication_p.h.

Referenced by QGuiApplicationPrivate(), and Q_TRACE_INSTRUMENT().

◆ lastCursorPosition

◆ lastTouchType

QEvent::Type QGuiApplicationPrivate::lastTouchType

Definition at line 291 of file qguiapplication_p.h.

◆ modalWindowList

QWindowList QGuiApplicationPrivate::modalWindowList

Definition at line 191 of file qguiapplication_p.h.

Referenced by isWindowBlocked().

◆ modifier_buttons

◆ mouse_buttons

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

◆ mousePressButton

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

Definition at line 202 of file qguiapplication_p.h.

Referenced by processMouseEvent().

◆ obey_desktop_settings

Q_CONSTINIT bool QGuiApplicationPrivate::obey_desktop_settings = true
static

◆ platform_integration

◆ platform_name

Q_CONSTINIT QString * QGuiApplicationPrivate::platform_name = nullptr
static

Definition at line 187 of file qguiapplication_p.h.

Referenced by QGuiApplication::~QGuiApplication(), and init_platform().

◆ platform_theme

Q_CONSTINIT QPlatformTheme * QGuiApplicationPrivate::platform_theme = nullptr
static

Definition at line 93 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate(), init_platform(), and processKeyEvent().

◆ qt_clipboard

Q_CONSTINIT QClipboard * QGuiApplicationPrivate::qt_clipboard = nullptr
static

◆ quitOnLastWindowClosed

Q_CONSTINIT bool QGuiApplicationPrivate::quitOnLastWindowClosed = true
static

◆ screen_list

◆ session_manager

QSessionManager* QGuiApplicationPrivate::session_manager

Definition at line 284 of file qguiapplication_p.h.

Referenced by commitData(), Q_TRACE_INSTRUMENT(), and saveState().

◆ styleHints

Q_CONSTINIT QStyleHints * QGuiApplicationPrivate::styleHints = nullptr
static

Definition at line 271 of file qguiapplication_p.h.

Referenced by ~QGuiApplicationPrivate(), and QGuiApplication::styleHints().

◆ styleOverride

◆ synthesizedMousePoints

QHash<QWindow *, SynthesizedMouseData> QGuiApplicationPrivate::synthesizedMousePoints

Definition at line 299 of file qguiapplication_p.h.

◆ tabletDevicePoints

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

◆ window_list


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