Qt 5.6 | Qt Platform Headers | C++ Classes | QWindowsWindowFunctions

Qt 5.6.2 Reference Documentation

# QWindowsWindowFunctions Class

The QWindowsWindowFunctions class is an inline class containing miscellaneous functionality for Windows window specific functionality. More...

Header: | #include <QWindowsWindowFunctions>
Since: | Qt 5.5

- List of all members, including inherited members

## Public Types

typedef | SetHasBorderInFullScreen
typedef | SetTouchWindowTouchType
enum | TouchWindowTouchType { NormalTouch, FineTouch, WantPalmTouch }
flags | TouchWindowTouchTypes

## Static Public Members

void | setHasBorderInFullScreen(QWindow *window, bool border)
const QByteArray | setHasBorderInFullScreenIdentifier()
void | setTouchWindowTouchType(QWindow *window, TouchWindowTouchTypes type)
const QByteArray | setTouchWindowTouchTypeIdentifier()

## Detailed Description

The QWindowsWindowFunctions class is an inline class containing miscellaneous functionality for Windows window specific functionality.

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::SetHasBorderInFullScreen

This is the typedef for the function returned by QGuiApplication::platformFunction when passed setHasBorderInFullScreenIdentifier.

### typedef QWindowsWindowFunctions::SetTouchWindowTouchType

This is the typedef for the function returned by QGuiApplication::platformFunction when passed setTouchWindowTouchTypeIdentifier.

### enum QWindowsWindowFunctions::TouchWindowTouchType
flags QWindowsWindowFunctions::TouchWindowTouchTypes

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

Constant | Value
--- | ---
`QWindowsWindowFunctions::NormalTouch` | `0x00000000`
`QWindowsWindowFunctions::FineTouch` | `0x00000001`
`QWindowsWindowFunctions::WantPalmTouch` | `0x00000002`

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

## Member Function Documentation

### `[static]` void QWindowsWindowFunctions::setHasBorderInFullScreen(QWindow *window, bool border)

This is a convenience function that can be used directly instead of resolving the function pointer. window and border will be relayed to the function retrieved by QGuiApplication. When border is true then it will enable the WS_BORDER flag in full screen mode to enable other top level windows inside the application to appear on top when required.

See also Fullscreen OpenGL Based Windows

This function was introduced in Qt 5.6.

### `[static]` const QByteArray QWindowsWindowFunctions::setHasBorderInFullScreenIdentifier()

This function returns the bytearray that can be used to query QGuiApplication::platformFunction to retrieve the SetHasBorderInFullScreen function.

This function was introduced in Qt 5.6.

### `[static]` void QWindowsWindowFunctions::setTouchWindowTouchType(QWindow *window, TouchWindowTouchTypes type)

This is a convenience function that can be used directly instead of resolving the function pointer. window and type will be relayed to the function retrieved by QGuiApplication

### `[static]` const QByteArray QWindowsWindowFunctions::setTouchWindowTouchTypeIdentifier()

This function returns the bytearray that can be used to query QGuiApplication::platformFunction to retrieve the SetTouchWindowTouchType function.