The PySide.QtGui.QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in Qt 4.4 or above.
PySide.QtGui.QStyleOptionViewItemV4 inherits 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.
See PySide.QtGui.QStyleOptionViewItemV3 ‘s detailed description for a discussion of how to handle “V3” classes.
Parameters: |
|
---|
Constructs a PySide.QtGui.QStyleOptionViewItemV4 object.
Constructs a PySide.QtGui.QStyleOptionViewItemV4 copy of the other style option which can be either of the PySide.QtGui.QStyleOptionViewItemV3 or PySide.QtGui.QStyleOptionViewItem types.
See also
version
Constructs a copy of other .
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.
Constant | Description |
---|---|
QStyleOptionViewItemV4.Invalid | The 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. |
This enum is used to hold information about the version of the style option, and is defined for each PySide.QtGui.QStyleOption subclass.
Constant | Description |
---|---|
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.
See also
QStyleOptionViewItem.StyleOptionType