- All Implemented Interfaces:
QtObjectInterface,Cloneable
Used to describe the parameters used to draw an item in a view widget
Java wrapper for Qt class QStyleOptionViewItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enum QStyleOptionViewItem::Positionstatic enumJava wrapper for Qt enum QStyleOptionViewItem::ViewItemFeaturestatic final classQFlags type for enumQStyleOptionViewItem.ViewItemFeaturestatic enumJava wrapper for Qt enum QStyleOptionViewItem::ViewItemPositionNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QBrushfinal Qt.CheckStateclone()final Qt.AlignmentThe alignment of the decoration for the itemThe position of the decoration for the itemfinal QSizeThe size of the decoration for the itemfinal Qt.AlignmentThe alignment of the display value for the itemfeatures()Bitwise OR of the features that describe this view itemfinal QFontfont()The font used for the itemfinal QIconicon()final QModelIndexindex()final QLocalelocale()final voidset(QStyleOptionViewItem arg__1) final voidsetBackgroundBrush(QBrush backgroundBrush) final voidsetCheckState(Qt.CheckState checkState) final voidsetDecorationAlignment(Qt.Alignment decorationAlignment) The alignment of the decoration for the itemfinal voidsetDecorationAlignment(Qt.AlignmentFlag... decorationAlignment) Overloaded function forsetDecorationAlignment(io.qt.core.Qt.Alignment).final voidsetDecorationPosition(QStyleOptionViewItem.Position decorationPosition) The position of the decoration for the itemfinal voidsetDecorationSize(QSize decorationSize) The size of the decoration for the itemfinal voidsetDisplayAlignment(Qt.Alignment displayAlignment) The alignment of the display value for the itemfinal voidsetDisplayAlignment(Qt.AlignmentFlag... displayAlignment) Overloaded function forsetDisplayAlignment(io.qt.core.Qt.Alignment).final voidsetFeatures(QStyleOptionViewItem.ViewItemFeature... features) Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionViewItem.ViewItemFeatures).final voidBitwise OR of the features that describe this view itemfinal voidThe font used for the itemfinal voidfinal voidsetIndex(QModelIndex index) final voidfinal voidsetShowDecorationSelected(boolean showDecorationSelected) Whether the decoration should be highlighted on selected itemsfinal voidfinal voidsetTextElideMode(Qt.TextElideMode textElideMode) Where ellipsis should be added for text that is too long to fit into an itemfinal voidsetViewItemPosition(QStyleOptionViewItem.ViewItemPosition viewItemPosition) final voidfinal booleanWhether the decoration should be highlighted on selected itemsfinal Stringtext()final Qt.TextElideModeWhere ellipsis should be added for text that is too long to fit into an itemfinal QWidgetwidget()Methods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toStringMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOptionViewItem
public QStyleOptionViewItem() -
QStyleOptionViewItem
-
QStyleOptionViewItem
Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
set
-
setBackgroundBrush
-
backgroundBrush
-
setCheckState
-
checkState
-
setDecorationAlignment
Overloaded function for
setDecorationAlignment(io.qt.core.Qt.Alignment). -
setDecorationAlignment
The alignment of the decoration for the item
-
decorationAlignment
The alignment of the decoration for the item
-
setDecorationPosition
@QtUninvokable public final void setDecorationPosition(QStyleOptionViewItem.Position decorationPosition) The position of the decoration for the item
-
decorationPosition
The position of the decoration for the item
-
setDecorationSize
The size of the decoration for the item
-
decorationSize
The size of the decoration for the item
-
setDisplayAlignment
Overloaded function for
setDisplayAlignment(io.qt.core.Qt.Alignment). -
setDisplayAlignment
The alignment of the display value for the item
-
displayAlignment
The alignment of the display value for the item
-
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionViewItem.ViewItemFeatures). -
setFeatures
Bitwise OR of the features that describe this view item
-
features
Bitwise OR of the features that describe this view item
-
setFont
The font used for the item
-
font
The font used for the item
-
setIcon
-
icon
-
setIndex
-
index
-
setLocale
-
locale
-
setShowDecorationSelected
Whether the decoration should be highlighted on selected items
-
showDecorationSelected
Whether the decoration should be highlighted on selected items
-
setText
-
text
-
setTextElideMode
Where ellipsis should be added for text that is too long to fit into an item
-
textElideMode
Where ellipsis should be added for text that is too long to fit into an item
-
setViewItemPosition
@QtUninvokable public final void setViewItemPosition(QStyleOptionViewItem.ViewItemPosition viewItemPosition) -
viewItemPosition
-
setWidget
-
widget
-
clone
- Overrides:
clonein classQStyleOption
-