• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QStyleOptionViewItemV3

    下一话题

    QStyleOptionFrame

    QStyleOptionViewItemV4

    详细描述

    PySide.QtGui.QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in Qt 4.4 or above.

    PySide.QtGui.QStyleOptionViewItemV4 继承 PySide.QtGui.QStyleOptionViewItemV3 .

    An instance of the PySide.QtGui.QStyleOptionViewItemV4 class has type SO_ViewItem and version 4. The type is used internally by PySide.QtGui.QStyleOption , its subclasses, and 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 PySide.QtGui.QStyleOption subclass and your own styles. The version is used by PySide.QtGui.QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast() , you normally do not need to check it.

    PySide.QtGui.QStyleOptionViewItemV3 ‘s detailed description for a discussion of how to handle “V3” classes.

    class PySide.QtGui. QStyleOptionViewItemV4
    class PySide.QtGui. QStyleOptionViewItemV4 ( other )
    class PySide.QtGui. QStyleOptionViewItemV4 ( other )
    class PySide.QtGui. QStyleOptionViewItemV4 ( version )
    参数:

    构造 PySide.QtGui.QStyleOptionViewItemV4 对象。

    构造 PySide.QtGui.QStyleOptionViewItemV4 copy of the other style option which can be either of the PySide.QtGui.QStyleOptionViewItemV3 or PySide.QtGui.QStyleOptionViewItem 类型。

    另请参阅

    version

    构造副本为 other .

    PySide.QtGui.QStyleOptionViewItemV4. ViewItemPosition

    This enum is used to represent the placement of the item on a row. This can be used to draw items differently depending on their placement, for example by putting rounded edges at the beginning and end, and straight edges in between.

    常量 描述
    QStyleOptionViewItemV4.Invalid QStyleOptionViewItemV4.ViewItemPosition is unknown and should be disregarded.
    QStyleOptionViewItemV4.Beginning The item appears at the beginning of the row.
    QStyleOptionViewItemV4.Middle The item appears in the middle of the row.
    QStyleOptionViewItemV4.End The item appears at the end of the row.
    QStyleOptionViewItemV4.OnlyOne The item is the only one on the row, and is therefore both at the beginning and the end.
    PySide.QtGui.QStyleOptionViewItemV4. StyleOptionVersion

    This enum is used to hold information about the version of the style option, and is defined for each PySide.QtGui.QStyleOption 子类。

    常量 描述
    QStyleOptionViewItemV4.Version 4

    The version is used by PySide.QtGui.QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast() , you normally do not need to check it.

    另请参阅

    QStyleOptionViewItem.StyleOptionType

    PySide.QtGui.QStyleOptionViewItemV4. checkState
    PySide.QtGui.QStyleOptionViewItemV4. viewItemPosition
    PySide.QtGui.QStyleOptionViewItemV4. icon
    PySide.QtGui.QStyleOptionViewItemV4. backgroundBrush
    PySide.QtGui.QStyleOptionViewItemV4. index
    PySide.QtGui.QStyleOptionViewItemV4. text