The QStyleHintReturnVariant class provides style hints that return a QVariant . 更多...
头: | #include <QStyleHintReturnVariant> |
qmake: | QT += widgets |
Since: | Qt 4.3 |
继承: | QStyleHintReturn |
enum | StyleOptionType { Type } |
enum | StyleOptionVersion { Version } |
QStyleHintReturnVariant () | |
~QStyleHintReturnVariant () |
QVariant | variant |
The QStyleHintReturnVariant class provides style hints that return a QVariant .
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn 子类。
常量 | 值 | 描述 |
---|---|---|
QStyleHintReturnVariant::Type
|
SH_Variant
|
提供样式选项的类型 ( SH_Variant 对于此类)。 |
类型内部使用通过 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 子类。
常量 | 值 | 描述 |
---|---|---|
QStyleHintReturnVariant::Version
|
1
|
1 |
版本的使用通过 QStyleHintReturn 子类以实现扩展在不破坏兼容性的情况下。若使用 qstyleoption_cast (),通常不需要校验它。
另请参阅 StyleOptionType .
构造 QStyleHintReturnVariant . The member variables are initialized to default values.
析构函数。
This variable holds the variant for style hints that return a QVariant