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;