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 類型。