QtWin 名称空间

QtWin 名称空间包含各种 Windows 特定函数。 更多...

头: #include <QtWin>
qmake: QT += winextras

类型

enum HBitmapFormat { HBitmapNoAlpha, HBitmapPremultipliedAlpha, HBitmapAlpha }
enum WindowFlip3DPolicy { FlipDefault, FlipExcludeAbove, FlipExcludeBelow }

函数

void setWindowFlip3DPolicy (QWidget * window , QtWin::WindowFlip3DPolicy policy )

详细描述

类型文档编制

enum QtWin:: HBitmapFormat

此枚举定义如何转换介于 HBITMAP and QPixmap 的履行。

常量 描述
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.

该枚举在 Qt 5.2 引入或被修改。

另请参阅 fromHBITMAP () 和 toHBITMAP ().

enum QtWin:: WindowFlip3DPolicy

此枚举类型指定 Flip3D 窗口策略。

常量 描述
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.

该枚举在 Qt 5.2 引入或被修改。

另请参阅 setWindowFlip3DPolicy ().

函数文档编制

void QtWin:: setWindowFlip3DPolicy ( QWidget * window , QtWin::WindowFlip3DPolicy policy )

This function overloads QtWin::setWindowFlip3DPolicy().

该函数在 Qt 5.2 引入。