![]() |
Qt 6.x
The Qt SDK
|
#include "qguiapplication.h"#include "private/qguiapplication_p.h"#include "private/qabstractfileiconprovider_p.h"#include <qpa/qplatformintegrationfactory_p.h>#include "private/qevent_p.h"#include "private/qeventpoint_p.h"#include "private/qiconloader_p.h"#include "qfont.h"#include "qpointingdevice.h"#include <qpa/qplatformfontdatabase.h>#include <qpa/qplatformwindow.h>#include <qpa/qplatformnativeinterface.h>#include <qpa/qplatformtheme.h>#include <qpa/qplatformintegration.h>#include <QtCore/QAbstractEventDispatcher>#include <QtCore/QFileInfo>#include <QtCore/QStandardPaths>#include <QtCore/QVariant>#include <QtCore/private/qcoreapplication_p.h>#include <QtCore/private/qabstracteventdispatcher_p.h>#include <QtCore/qmutex.h>#include <QtCore/private/qthread_p.h>#include <QtCore/private/qlocking_p.h>#include <QtCore/private/qflatmap_p.h>#include <QtCore/qdir.h>#include <QtCore/qlibraryinfo.h>#include <QtCore/private/qnumeric_p.h>#include <QtDebug>#include <qpalette.h>#include <qscreen.h>#include "qsessionmanager.h"#include <private/qcolortrclut_p.h>#include <private/qscreen_p.h>#include <QtGui/qgenericpluginfactory.h>#include <QtGui/qstylehints.h>#include <QtGui/private/qstylehints_p.h>#include <QtGui/qinputmethod.h>#include <QtGui/qpixmapcache.h>#include <qpa/qplatforminputcontext.h>#include <qpa/qplatforminputcontext_p.h>#include <qpa/qwindowsysteminterface.h>#include <qpa/qwindowsysteminterface_p.h>#include "private/qwindow_p.h"#include "private/qicon_p.h"#include "private/qcursor_p.h"#include "private/qinputdevicemanager_p.h"#include "private/qinputmethod_p.h"#include "private/qpointingdevice_p.h"#include <qpa/qplatformthemefactory_p.h>#include <qpa/qplatformcursor.h>#include <QtGui/QPixmap>#include <QtGui/QClipboard>#include <qtgui_tracepoints_p.h>#include <private/qtools_p.h>#include <limits>#include "moc_qguiapplication.cpp"Go to the source code of this file.
Classes | |
| struct | QWindowGeometrySpecification |
Macros | |
| #define | CHECK_QAPP_INSTANCE(...) |
| #define | Q_WINDOW_GEOMETRY_SPECIFICATION_INITIALIZER { Qt::TopLeftCorner, -1, -1, -1, -1 } |
Enumerations | |
| enum | ApplicationResourceFlags { ApplicationFontExplicitlySet = 0x2 } |
| enum | MouseMasks { MouseCapsMask = 0xFF , MouseSourceMaskDst = 0xFF00 , MouseSourceMaskSrc = MouseCapsMask , MouseSourceShift = 8 , MouseFlagsCapsMask = 0xFF0000 , MouseFlagsShift = 16 } |
Functions | |
| Q_CORE_EXPORT void | qt_call_post_routines () |
| void | qRegisterGuiVariant () |
| static bool | qt_detectRTLLanguage () |
| static void | initFontUnlocked () |
| static void | clearFontUnlocked () |
| static void | initThemeHints () |
| static bool | checkNeedPortalSupport () |
| static int | nextGeometryToken (const QByteArray &a, int &pos, char *op) |
| static void | updateBlockedStatusRecursion (QWindow *window, bool shouldBeBlocked) |
| static bool | needsWindowBlockedEvent (const QWindow *w) |
| Q_LOGGING_CATEGORY (lcQpaPluginLoading, "qt.qpa.plugin") | |
| Q_LOGGING_CATEGORY (lcQpaTheme, "qt.qpa.theme") | |
| Q_LOGGING_CATEGORY (lcPtrDispatch, "qt.pointer.dispatch") | |
| static void | init_platform (const QString &pluginNamesWithArguments, const QString &platformPluginPath, const QString &platformThemeName, int &argc, char **argv) |
| static void | init_plugins (const QList< QByteArray > &pluginList) |
| void | Q_TRACE_INSTRUMENT (qtgui) QGuiApplicationPrivate |
| void | qt_cleanupFontDatabase () |
| static void | applyCursor (QWindow *w, QCursor c) |
| static void | unsetCursor (QWindow *w) |
| static void | applyCursor (const QList< QWindow * > &l, const QCursor &c) |
| static void | applyOverrideCursor (const QList< QScreen * > &screens, const QCursor &c) |
| static void | clearOverrideCursor (const QList< QScreen * > &screens) |
| static void | applyWindowCursor (const QList< QWindow * > &l) |
Variables | |
| Q_CONSTINIT Q_GUI_EXPORT bool | qt_is_tty_app = false |
| static Q_CONSTINIT unsigned | applicationResourceFlags = 0 |
| static Q_CONSTINIT int | mouseDoubleClickDistance = 0 |
| static Q_CONSTINIT int | touchDoubleTapDistance = 0 |
| static Q_CONSTINIT Qt::LayoutDirection | layout_direction = Qt::LayoutDirectionAuto |
| static Q_CONSTINIT Qt::LayoutDirection | effective_layout_direction = Qt::LeftToRight |
| static Q_CONSTINIT bool | force_reverse = false |
| static Q_CONSTINIT QBasicMutex | applicationFontMutex |
| static Q_CONSTINIT qreal | fontSmoothingGamma = 1.7 |
| static QWindowGeometrySpecification | windowGeometrySpecification = Q_WINDOW_GEOMETRY_SPECIFICATION_INITIALIZER |
| #define CHECK_QAPP_INSTANCE | ( | ... | ) |
Definition at line 112 of file qguiapplication.cpp.
| #define Q_WINDOW_GEOMETRY_SPECIFICATION_INITIALIZER { Qt::TopLeftCorner, -1, -1, -1, -1 } |
Definition at line 244 of file qguiapplication.cpp.
| Enumerator | |
|---|---|
| ApplicationFontExplicitlySet | |
Definition at line 145 of file qguiapplication.cpp.
| enum MouseMasks |
| Enumerator | |
|---|---|
| MouseCapsMask | |
| MouseSourceMaskDst | |
| MouseSourceMaskSrc | |
| MouseSourceShift | |
| MouseFlagsCapsMask | |
| MouseFlagsShift | |
Definition at line 4318 of file qguiapplication.cpp.
Definition at line 4084 of file qguiapplication.cpp.
References applyCursor(), QList< T >::at(), Qt::Desktop, i, and QList< T >::size().
Here is the call graph for this function:Definition at line 4070 of file qguiapplication.cpp.
References cursor, QPlatformScreen::cursor(), QScreen::handle(), and screen.
Referenced by applyCursor(), applyWindowCursor(), QGuiApplication::restoreOverrideCursor(), and QGuiApplication::setOverrideCursor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 4093 of file qguiapplication.cpp.
References cursor, QPlatformScreen::cursor(), QScreen::handle(), and screen.
Referenced by QGuiApplication::restoreOverrideCursor(), and QGuiApplication::setOverrideCursor().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 4109 of file qguiapplication.cpp.
References applyCursor(), QList< T >::at(), Qt::Desktop, i, qt_window_private(), QList< T >::size(), and unsetCursor().
Referenced by QGuiApplication::restoreOverrideCursor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 234 of file qguiapplication.cpp.
References QFileInfo::exists(), and qEnvironmentVariableIsSet().
Referenced by init_platform().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 222 of file qguiapplication.cpp.
References QGuiApplicationPrivate::app_font.
Referenced by QGuiApplicationPrivate::~QGuiApplicationPrivate(), and QGuiApplicationPrivate::handleThemeChanged().
Here is the caller graph for this function:Definition at line 4101 of file qguiapplication.cpp.
References cursor, QPlatformScreen::cursor(), QScreen::handle(), and screen.
Referenced by QGuiApplication::restoreOverrideCursor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1211 of file qguiapplication.cpp.
References Qt::AA_DontShowShortcutsInContextMenus, QList< T >::append(), QCoreApplication::applicationName, QString::arg(), argument, arguments, QString::at(), checkNeedPortalSupport(), QPlatformThemeFactory::create(), QPlatformIntegrationFactory::create(), QPlatformIntegration::createPlatformTheme(), fontSmoothingGamma, QPlatformIntegration::FontSmoothingGamma, QLibraryInfo::isDebugBuild(), QString::isEmpty(), QList< T >::isEmpty(), QPlatformIntegrationFactory::keys(), QGuiApplicationPrivate::platform_integration, QGuiApplicationPrivate::platform_name, QGuiApplicationPrivate::platform_theme, QGuiApplicationPrivate::platformIntegration(), QLibraryInfo::platformPluginArguments(), Q_UNLIKELY, qCDebug, qCInfo, qCWarning, qFatal, qPrintable, QStringLiteral, QCoreApplication::setAttribute(), Qt::SkipEmptyParts, QString::split(), QGuiApplication::styleHints(), QList< T >::takeFirst(), themeName(), QPlatformIntegration::themeNames(), themeNames, QDir::toNativeSeparators(), QChar::toUpper(), and QString::utf16().
Referenced by QGuiApplicationPrivate::createPlatformIntegration().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1343 of file qguiapplication.cpp.
References QList< T >::append(), QList< T >::at(), QByteArray::constData(), QGenericPluginFactory::create(), QGuiApplicationPrivate::generic_plugin_list, i, QByteArray::indexOf(), QByteArray::mid(), qWarning, and QList< T >::size().
Referenced by Q_TRACE_INSTRUMENT().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 210 of file qguiapplication.cpp.
References QGuiApplicationPrivate::app_font, font, QGuiApplicationPrivate::platformIntegration(), QGuiApplicationPrivate::platformTheme(), and QPlatformTheme::SystemFont.
Referenced by QGuiApplication::font(), and QGuiApplicationPrivate::handleThemeChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 228 of file qguiapplication.cpp.
References mouseDoubleClickDistance, QPlatformTheme::MouseDoubleClickDistance, QGuiApplicationPrivate::platformTheme(), QPlatformTheme::themeHint(), QVariant::toInt(), touchDoubleTapDistance, and QPlatformTheme::TouchDoubleTapDistance.
Referenced by QGuiApplicationPrivate::handleThemeChanged(), and Q_TRACE_INSTRUMENT().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 861 of file qguiapplication.cpp.
References Qt::Desktop.
Referenced by QGuiApplicationPrivate::hideModalWindow(), and QGuiApplicationPrivate::showModalWindow().
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 261 of file qguiapplication.cpp.
References QtMiscUtils::isAsciiDigit(), ok, and pos.
Referenced by QWindowGeometrySpecification::fromArgument().
Here is the call graph for this function:
Here is the caller graph for this function:| Q_LOGGING_CATEGORY | ( | lcPtrDispatch | , |
| "qt.pointer.dispatch" | |||
| ) |
| Q_LOGGING_CATEGORY | ( | lcQpaPluginLoading | , |
| "qt.qpa.plugin" | |||
| ) |
| Q_LOGGING_CATEGORY | ( | lcQpaTheme | , |
| "qt.qpa.theme" | |||
| ) |
| void Q_TRACE_INSTRUMENT | ( | qtgui | ) |
Definition at line 1555 of file qguiapplication.cpp.
References Qt::AA_ShareOpenGLContexts, QGuiApplication::applicationDisplayNameChanged(), QCoreApplication::applicationNameChanged(), arg, QCoreApplicationPrivate::argc, QCoreApplicationPrivate::argv, QObject::connect(), QGuiApplicationPrivate::createPlatformIntegration(), QDir::currentPath(), QSurfaceFormat::defaultFormat(), QGuiApplicationPrivate::displayName, QString::endsWith(), QLibrary::errorString(), QWindowSystemInterfacePrivate::eventTime, QWindowSystemInterface::flushWindowSystemEvents(), force_reverse, QString::fromLatin1(), QString::fromLocal8Bit(), QString::fromWCharArray(), i, QString::indexOf(), QCoreApplicationPrivate::init(), init_plugins(), QCursorData::initialize(), QFont::initialize(), initThemeHints(), QCoreApplicationPrivate::is_app_running, QGuiApplicationPrivate::is_session_restored, QByteArray::isEmpty(), j, layout_direction, QString::left(), QLibrary::load(), QString::mid(), QGuiApplicationPrivate::platform_integration, pool, Q_TRACE_SCOPE, Q_UNLIKELY, Q_UNUSED, qApp, qCritical, qEnvironmentVariableIntValue(), qgetenv(), qRegisterGuiGetInterpolator(), qRegisterGuiVariant(), QStringLiteral, qt_gl_global_share_context(), qt_gl_set_global_share_context(), QLibrary::resolve(), QString::section(), QGuiApplicationPrivate::session_manager, QDir::setCurrent(), QOpenGLContext::setFormat(), QGuiApplication::setLayoutDirection(), QByteArray::split(), QElapsedTimer::start(), QGuiApplicationPrivate::styleOverride, QGuiApplicationPrivate::updatePalette(), and void.
Here is the call graph for this function:| void qRegisterGuiVariant | ( | ) |
Definition at line 139 of file qguivariant.cpp.
References qMetaTypeGuiHelper.
Referenced by Q_TRACE_INSTRUMENT().
Here is the caller graph for this function:| Q_CORE_EXPORT void qt_call_post_routines | ( | ) |
Definition at line 309 of file qcoreapplication.cpp.
| void qt_cleanupFontDatabase | ( | ) |
Definition at line 518 of file qfontdatabase.cpp.
References db, and QFontDatabasePrivate::instance().
Referenced by QGuiApplicationPrivate::~QGuiApplicationPrivate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 201 of file qguiapplication.cpp.
References force_reverse.
Referenced by QGuiApplication::setLayoutDirection().
Here is the caller graph for this function:Definition at line 4077 of file qguiapplication.cpp.
References cursor, QPlatformScreen::cursor(), QScreen::handle(), and screen.
Referenced by applyWindowCursor(), QHeaderView::mouseMoveEvent(), and QQuickPageIndicator::setInteractive().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 835 of file qguiapplication.cpp.
References e, qt_window_private(), QCoreApplication::sendEvent(), updateBlockedStatusRecursion(), window(), QEvent::WindowBlocked, and QEvent::WindowUnblocked.
Referenced by QGuiApplicationPrivate::updateBlockedStatus(), and updateBlockedStatusRecursion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 183 of file qguiapplication.cpp.
Referenced by QGuiApplication::font(), QGuiApplicationPrivate::handleThemeChanged(), and QGuiApplication::setFont().
|
static |
Definition at line 150 of file qguiapplication.cpp.
Referenced by QGuiApplicationPrivate::handleThemeChanged(), and QGuiApplication::setFont().
|
static |
Definition at line 168 of file qguiapplication.cpp.
Referenced by QGuiApplication::setLayoutDirection().
|
static |
Definition at line 192 of file qguiapplication.cpp.
Referenced by QGuiApplicationPrivate::colorProfileForA32Text(), and init_platform().
|
static |
Definition at line 169 of file qguiapplication.cpp.
Referenced by Q_TRACE_INSTRUMENT(), and qt_detectRTLLanguage().
|
static |
Definition at line 167 of file qguiapplication.cpp.
Referenced by QGuiApplicationPrivate::~QGuiApplicationPrivate(), QGuiApplication::event(), Q_TRACE_INSTRUMENT(), and QGuiApplication::setLayoutDirection().
|
static |
Definition at line 162 of file qguiapplication.cpp.
Referenced by initThemeHints(), and QGuiApplicationPrivate::processMouseEvent().
| Q_CONSTINIT Q_GUI_EXPORT bool qt_is_tty_app = false |
Definition at line 120 of file qguiapplication.cpp.
Referenced by QApplication::~QApplication(), QApplicationPrivate::init(), QApplicationPrivate::initialize(), QApplicationPrivate::process_cmdline(), qt_defaultDpiX(), and qt_defaultDpiY().
|
static |
Definition at line 163 of file qguiapplication.cpp.
Referenced by initThemeHints(), and QGuiApplicationPrivate::processMouseEvent().
|
static |
Definition at line 343 of file qguiapplication.cpp.
Referenced by QGuiApplicationPrivate::applyWindowGeometrySpecificationTo(), and QGuiApplicationPrivate::createPlatformIntegration().