QWindowsApplication Struct

struct QNativeInterface::Private::QWindowsApplication

Native interface to QGuiApplication, to be retrieved from QPlatformIntegration. More...

Header: #include <QWindowsApplication>
CMake: find_package(Qt6 COMPONENT Gui)
target_link_libraries(mytarget PUBLIC Qt::Gui)
qmake: QT += gui
Since: Qt 6.0

Public Types

flags DarkModeHandling
enum DarkModeHandlingFlag { DarkModeWindowFrames, DarkModeStyle }
enum TouchWindowTouchType { NormalTouch, FineTouch, WantPalmTouch }
flags TouchWindowTouchTypes
enum WindowActivationBehavior { DefaultActivateWindow, AlwaysActivateWindow }

Detailed Description

Member Type Documentation

enum QWindowsApplication::DarkModeHandlingFlag
flags QWindowsApplication::DarkModeHandling

This enum specifies the behavior of the application when Windows is configured to use dark mode for applications.

ConstantValueDescription
QNativeInterface::Private::QWindowsApplication::DarkModeWindowFrames0x1The window frames will be switched to dark.
QNativeInterface::Private::QWindowsApplication::DarkModeStyle0x2The Windows Vista style will be turned off and a simple dark style will be used.

The DarkModeHandling type is a typedef for QFlags<DarkModeHandlingFlag>. It stores an OR combination of DarkModeHandlingFlag values.

See also isDarkMode() and setDarkModeHandling().

enum QWindowsApplication::TouchWindowTouchType
flags QWindowsApplication::TouchWindowTouchTypes

This enum represents the supported TouchWindow touch flags for registerTouchWindow().

ConstantValue
QNativeInterface::Private::QWindowsApplication::NormalTouch0x00000000
QNativeInterface::Private::QWindowsApplication::FineTouch0x00000001
QNativeInterface::Private::QWindowsApplication::WantPalmTouch0x00000002

The TouchWindowTouchTypes type is a typedef for QFlags<TouchWindowTouchType>. It stores an OR combination of TouchWindowTouchType values.

enum QWindowsApplication::WindowActivationBehavior

This enum specifies the behavior of QWidget::activateWindow() and QWindow::requestActivate().

ConstantValueDescription
QNativeInterface::Private::QWindowsApplication::DefaultActivateWindow0The window is activated according to the default behavior of the Windows operating system. This means the window will not be activated in some circumstances (most notably when the calling process is not the active process); only the taskbar entry will be flashed.
QNativeInterface::Private::QWindowsApplication::AlwaysActivateWindow1The window is always activated, even when the calling process is not the active process.

See also QWidget::activateWindow() and QWindow::requestActivate().