[QtGui module]
该QStyleOptionTabWidgetFrameV2类用于描述参数周围绘制一个标籤插件的框架。More…
Types
enum StyleOptionVersion { Version }
Methods
__init__ (self)
__init__ (self, QStyleOptionTabWidgetFrameV2 other)
__init__ (self, QStyleOptionTabWidgetFrame other)
Members
QRect **[selectedTabRect](docs_qstyleoptiontabwidgetframev2.html#selectedTabRect-var)**
QRect **[tabBarRect](docs_qstyleoptiontabwidgetframev2.html#tabBarRect-var)**
Detailed Description
该QStyleOptionTabWidgetFrameV2类用于描述参数周围绘制一个标籤插件的框架。
QStyleOptionTabWidgetFrameV2包含的所有信息,QStyle功能需要借助周围的边框QTabWidget。
出于性能方面的原因,访问成员变量是直接的(即使用.
or ->
操作符)。这种低层次的感觉,使结构简单的使用,并强调这些只是所用的样式函数的参数。
举一个例子展示风格选择如何使用,请参阅Styles例子。
Type Documentation
QStyleOptionTabWidgetFrameV2.StyleOptionVersion
此枚举是用来保存有关样式选项的版本信息,并定义每个QStyleOption子类。
Constant | Value | Description |
---|---|---|
QStyleOptionTabWidgetFrameV2.Version |
2 |
2 |
的版本是由QStyleOption子类实现不破坏兼容性扩展。如果你使用qstyleoption_cast( ) ,你通常并不需要检查它。
See also StyleOptionType。
Method Documentation
QStyleOptionTabWidgetFrameV2.__init__ (self)
构造一个QStyleOptionTabWidgetFrameV2,初始化成员变量,它们的默认值。
QStyleOptionTabWidgetFrameV2.__init__ (self, QStyleOptionTabWidgetFrameV2 other)
构造一个QStyleOptionTabWidgetFrameV2副本other样式选项。
如果other风格选择的版本是1 ,新样式选项的selectedTabRect和tabBarRect将包含null rects
See also version。
QStyleOptionTabWidgetFrameV2.__init__ (self, QStyleOptionTabWidgetFrame other)
构造一个QStyleOptionTabWidgetFrameV2副本other样式选项。
如果other风格选择的版本是1 ,新样式选项的selectedTabRect和tabBarRect将包含null rects
See also version。
Member Documentation
QRect selectedTabRect
[
这个变量保存包含所选选项卡的矩形。
](docs_qrect.html)
这个矩形被包含在tabBarRect。默认值是空的矩形,即用宽度和高度设置为0的矩形。
QRect tabBarRect
[
这个变量保存一个包含所有标籤的矩形。
默认值是空的矩形,即用宽度和高度设置为0的矩形。
](docs_qrect.html)