The QStyleOptionViewItemV3 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above. 更多...
| 头: | #include <QStyleOptionViewItemV3> |
| Since: | Qt 4.3 |
| 继承: | QStyleOptionViewItemV2 |
| 继承者: | QStyleOptionViewItemV4 |
| enum | StyleOptionVersion { Version } |
| QStyleOptionViewItemV3 () | |
| QStyleOptionViewItemV3 (const QStyleOptionViewItemV3 & other ) | |
| QStyleOptionViewItemV3 (const QStyleOptionViewItem & other ) | |
| QStyleOptionViewItemV3 & | operator= (const QStyleOptionViewItem & other ) |
The QStyleOptionViewItemV3 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above.
QStyleOptionViewItemV3 继承 QStyleOptionViewItem .
An instance of the QStyleOptionViewItemV3 class has type SO_ViewItem and version 3. The type is used internally by QStyleOption ,其子类,和 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 QStyleOption subclass and your own styles. The version is used by QStyleOption 子类以实现扩展在不破坏兼容性的情况下。若使用 qstyleoption_cast (),通常不需要校验它。
见 QStyleOptionFrameV2 's detailed description for a discussion of how to handle "V2" and other versioned classes.
另请参阅 QStyleOptionViewItem and QStyleOption .
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption 子类。
| 常量 | 值 | 描述 |
|---|---|---|
QStyleOptionViewItemV3::Version
|
3
|
3 |
版本的使用通过 QStyleOption 子类以实现扩展在不破坏兼容性的情况下。若使用 qstyleoption_cast (),通常不需要校验它。
另请参阅 StyleOptionType .
构造 QStyleOptionViewItemV3 对象。
构造副本为 other .
构造副本为 other .
赋值 other style option to this style option. The other style option can be an instance of the QStyleOptionViewItemV2 , QStyleOptionViewItemV3 or QStyleOptionViewItem 类型。