QStyleOptionTabBarBaseV2 Class

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 ().

成員類型文檔編製

enum QStyleOptionTabBarBaseV2:: StyleOptionVersion

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:: QStyleOptionTabBarBaseV2 ()

構造 QStyleOptionTabBarBaseV2 , initializing the members vaiables to their default values.

QStyleOptionTabBarBaseV2:: QStyleOptionTabBarBaseV2 (const QStyleOptionTabBarBaseV2 & other )

構造副本為 other .

QStyleOptionTabBarBaseV2:: QStyleOptionTabBarBaseV2 (const QStyleOptionTabBarBase & other )

構造副本為 other .

QStyleOptionTabBarBaseV2 & QStyleOptionTabBarBaseV2:: operator= (const QStyleOptionTabBarBase & 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.

成員變量文檔編製

bool QStyleOptionTabBarBaseV2:: documentMode

This variable holds whether the tabbar is in document mode.

默認值為 false;