- Qt 5.5
- Qt Platform Headers
- C++ Classes
- QWindowsWindowFunctions
- Qt 5.5.1 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 | SetTouchWindowTouchType
enum | TouchWindowTouchType { NormalTouch, FineTouch, WantPalmTouch }
flags | TouchWindowTouchTypes

## Static Public Members

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