QStyleHintReturnMask 类提供的样式提示返回 QRegion . 更多...
头: | #include <QStyleHintReturnMask> |
CMake: |
find_package(Qt6 COMPONENTS Widgets REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
继承: | QStyleHintReturn |
enum | StyleOptionType { Type } |
enum | StyleOptionVersion { Version } |
QStyleHintReturnMask () | |
~QStyleHintReturnMask () |
QRegion | region |
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn 子类。
常量 | 值 | 描述 |
---|---|---|
QStyleHintReturnMask::Type
|
SH_Mask
|
提供样式选项的类型 ( SH_Mask 对于此类)。 |
类型内部使用通过 QStyleHintReturn ,其子类,和 qstyleoption_cast () to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleHintReturn subclass and your own styles.
另请参阅 StyleOptionVersion .
This enum is used to hold information about the version of the style option, and is defined for each QStyleHintReturn 子类。
常量 | 值 | 描述 |
---|---|---|
QStyleHintReturnMask::Version
|
1
|
1 |
版本的使用通过 QStyleHintReturn 子类以实现扩展在不破坏兼容性的情况下。若使用 qstyleoption_cast (),通常不需要校验它。
另请参阅 StyleOptionType .
Constructs a QStyleHintReturnMask. The member variables are initialized to default values.
析构函数。
This variable holds the region for style hints that return a QRegion