QWindowsWindowFunctions Class
The QWindowsWindowFunctions class is an inline class containing miscellaneous functionality for Windows window specific functionality. More...
| Header: | #include <QtPlatformHeaders/QWindowsWindowFunctions> |
| Since: | Qt 5.5 |
This class was introduced in Qt 5.5.
Public Types
| typedef | IsTabletModeType |
| typedef | SetHasBorderInFullScreen |
| typedef | SetHasBorderInFullScreenDefault |
| typedef | SetTouchWindowTouchType |
| typedef | SetWindowActivationBehaviorType |
| enum | TouchWindowTouchType { NormalTouch, FineTouch, WantPalmTouch } |
Detailed Description
A common usage pattern is as follows:
int main(int argc, char **argv) { QApplication app(argc, argv); QPushButton topLevelWidget("Hello World!"); topLevelWidget.winId(); //have to create the QWindow QWindow *tlwWindow = topLevelWidget.windowHandle(); QWindowsWindowFunctions::setTouchWindowTouchType(tlwWindow, QWindowsWindowFunctions::WantPalmTouch); topLevelWidget.show(); return app.exec(); }
Note: There is no binary compatibility guarantee for this class, meaning that an application using it is only guaranteed to work with the Qt version it was developed against.
Member Type Documentation
typedef QWindowsWindowFunctions::IsTabletModeType
This is the typedef for the function returned by QGuiApplication::platformFunction() when passed isTabletModeIdentifier().
This typedef was introduced in Qt 5.9.
typedef QWindowsWindowFunctions::SetHasBorderInFullScreen
This is the typedef for the function returned by QGuiApplication::platformFunction when passed setHasBorderInFullScreenIdentifier.
typedef QWindowsWindowFunctions::SetHasBorderInFullScreenDefault
This is the typedef for the function returned by QGuiApplication::platformFunction when passed setHasBorderInFullScreenDefaultIdentifier.
This typedef was introduced in Qt 5.13.
typedef QWindowsWindowFunctions::SetTouchWindowTouchType
This is the typedef for the function returned by QGuiApplication::platformFunction when passed setTouchWindowTouchTypeIdentifier.
typedef QWindowsWindowFunctions::SetWindowActivationBehaviorType
This is the typedef for the function returned by QGuiApplication::platformFunction() when passed setWindowActivationBehaviorIdentifier().
This typedef was introduced in Qt 5.7.
See also QWidget::activateWindow() and QWindow::requestActivate().
enum QWindowsWindowFunctions::TouchWindowTouchType
This enum represents the supported TouchWindow touch flags for RegisterTouchWindow().
| Constant | Value |
|---|---|
QWindowsWindowFunctions::NormalTouch | 0x00000000 |
QWindowsWindowFunctions::FineTouch | 0x00000001 |
QWindowsWindowFunctions::WantPalmTouch | 0x00000002 |