The QStyleOptionTabBarBaseV2 class is used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with. 更多...
| 頭: | #include <QStyleOptionTabBarBaseV2> |
| Since: | Qt 4.5 |
| 繼承: | QStyleOptionTabBarBase |
| enum | StyleOptionVersion { Version } |
| QStyleOptionTabBarBaseV2 () | |
| QStyleOptionTabBarBaseV2 (const QStyleOptionTabBarBaseV2 & other ) | |
| QStyleOptionTabBarBaseV2 (const QStyleOptionTabBarBase & other ) | |
| QStyleOptionTabBarBaseV2 & | operator= (const QStyleOptionTabBarBase & other ) |
| bool | documentMode |
The QStyleOptionTabBarBaseV2 class is used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with.
QStyleOptionTabBarBase contains all the information that QStyle functions need to draw the tab bar base.
For performance reasons, the access to the member variables is direct (i.e., using the
.
or
->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
對於可以如何使用樣式選項的演示範例,見 樣式 範例。
另請參閱 QStyleOption and QTabBar::drawBase ().
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption 子類。
| 常量 | 值 | 描述 |
|---|---|---|
QStyleOptionTabBarBaseV2::Version
|
2
|
2 |
版本的使用通過 QStyleOption 子類以實現擴展在不破壞兼容性的情況下。若使用 qstyleoption_cast (),通常不需要校驗它。
另請參閱 StyleOptionType .
構造 QStyleOptionTabBarBaseV2 , initializing the members vaiables to their default values.
構造副本為 other .
構造副本為 other .
構造 QStyleOptionTabBarBaseV2 copy of the other style option which can be either of the QStyleOptionTabBarBaseV2 ,或 QStyleOptionTabBarBase 類型。
If the other style option's version is not 1, the new style option's
documentMode
is set to false. If its version is 2, its
documentMode
value is simply copied to the new style option.
This variable holds whether the tabbar is in document mode.
默認值為 false;