QtWin Namespace
The QtWin namespace contains miscellaneous Windows-specific functions. More...
Header: | #include <QtWin> |
qmake: | QT += winextras |
Types
enum | HBitmapFormat { HBitmapNoAlpha, HBitmapPremultipliedAlpha, HBitmapAlpha } |
enum | WindowFlip3DPolicy { FlipDefault, FlipExcludeAbove, FlipExcludeBelow } |
Functions
void | setWindowFlip3DPolicy(QWidget *window, QtWin::WindowFlip3DPolicy policy) |
Type Documentation
enum QtWin::HBitmapFormat
This enum defines how the conversion between HBITMAP
and QPixmap is performed.
Constant | Value | Description |
---|---|---|
QtWin::HBitmapNoAlpha | 0 | The alpha channel is ignored and always treated as being set to fully opaque. This is preferred if the HBITMAP is used with standard GDI calls, such as BitBlt() . |
QtWin::HBitmapPremultipliedAlpha | 1 | The HBITMAP is treated as having an alpha channel and premultiplied colors. This is preferred if the HBITMAP is accessed through the AlphaBlend() GDI function. |
QtWin::HBitmapAlpha | 2 | The HBITMAP is treated as having a plain alpha channel. This is the preferred format if the HBITMAP is going to be used as an application icon or a systray icon. |
This enum was introduced or modified in Qt 5.2.
See also fromHBITMAP() and toHBITMAP().
enum QtWin::WindowFlip3DPolicy
This enum type specifies the Flip3D window policy.
Constant | Value | Description |
---|---|---|
QtWin::FlipDefault | 0 | Let the OS decide whether to include the window in the Flip3D rendering. |
QtWin::FlipExcludeAbove | 2 | Exclude the window from Flip3D and display it above the Flip3D rendering. |
QtWin::FlipExcludeBelow | 1 | Exclude the window from Flip3D and display it below the Flip3D rendering. |
This enum was introduced or modified in Qt 5.2.
See also setWindowFlip3DPolicy().
Function Documentation
void QtWin::setWindowFlip3DPolicy(QWidget *window, QtWin::WindowFlip3DPolicy policy)
This function overloads QtWin::setWindowFlip3DPolicy().
This function was introduced in Qt 5.2.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.