QWindowsApplication Struct
struct QNativeInterface::Private::QWindowsApplicationNative 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.
Constant | Value | Description |
---|---|---|
QNativeInterface::Private::QWindowsApplication::DarkModeWindowFrames | 0x1 | The window frames will be switched to dark. |
QNativeInterface::Private::QWindowsApplication::DarkModeStyle | 0x2 | The 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().
Constant | Value |
---|---|
QNativeInterface::Private::QWindowsApplication::NormalTouch | 0x00000000 |
QNativeInterface::Private::QWindowsApplication::FineTouch | 0x00000001 |
QNativeInterface::Private::QWindowsApplication::WantPalmTouch | 0x00000002 |
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().
Constant | Value | Description |
---|---|---|
QNativeInterface::Private::QWindowsApplication::DefaultActivateWindow | 0 | The 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::AlwaysActivateWindow | 1 | The window is always activated, even when the calling process is not the active process. |
See also QWidget::activateWindow() and QWindow::requestActivate().