- 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 enumQStyleOptionViewItem::Positionstatic enumJava wrapper for Qt enumQStyleOptionViewItem::ViewItemFeaturestatic final classQFlagstype for enumQStyleOptionViewItem.ViewItemFeaturestatic enumJava wrapper for Qt enumQStyleOptionViewItem::ViewItemPosition -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QStyleOptionViewItem arg__1) SeeQStyleOptionViewItem::operator=(QStyleOptionViewItem) final QBrushfinal Qt.CheckStateclone()Creates and returns a copy of this object.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()SeeQStyleOptionViewItem::locale final voidset(QStyleOptionViewItem arg__1) Deprecated.final voidsetBackgroundBrush(Qt.BrushStyle backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush).final voidsetBackgroundBrush(Qt.GlobalColor backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush).final voidsetBackgroundBrush(QBrush backgroundBrush) final voidsetBackgroundBrush(QColor backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush).final voidsetBackgroundBrush(QGradient backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush).final voidsetBackgroundBrush(QImage backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush).final voidsetBackgroundBrush(QPixmap backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush).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 voidOverloaded function forsetFont(io.qt.gui.QFont).final voidfinal voidOverloaded function forsetIcon(io.qt.gui.QIcon).final voidsetIndex(QModelIndex index) final voidSeeQStyleOptionViewItem::locale final voidsetLocale(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale).final voidOverloaded function forsetLocale(io.qt.core.QLocale).final 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 voidSeeQStyleOptionViewItem::widget final 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()SeeQStyleOptionViewItem::widget Methods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, init, 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
- Parameters:
other-
-
-
Method Details
-
assign
See
QStyleOptionViewItem::operator=(QStyleOptionViewItem) - Parameters:
arg__1-
-
setBackgroundBrush
- Parameters:
backgroundBrush-
-
backgroundBrush
- Returns:
-
setCheckState
- Parameters:
checkState-
-
checkState
- Returns:
-
setDecorationAlignment
The alignment of the decoration for the item
- Parameters:
decorationAlignment-
-
decorationAlignment
The alignment of the decoration for the item
- Returns:
-
setDecorationPosition
@QtUninvokable public final void setDecorationPosition(QStyleOptionViewItem.Position decorationPosition) The position of the decoration for the item
- Parameters:
decorationPosition-
-
decorationPosition
The position of the decoration for the item
- Returns:
-
setDecorationSize
The size of the decoration for the item
- Parameters:
decorationSize-
-
decorationSize
The size of the decoration for the item
- Returns:
-
setDisplayAlignment
The alignment of the display value for the item
- Parameters:
displayAlignment-
-
displayAlignment
The alignment of the display value for the item
- Returns:
-
setFeatures
Bitwise OR of the features that describe this view item
- Parameters:
features-
-
features
Bitwise OR of the features that describe this view item
- Returns:
-
setFont
The font used for the item
- Parameters:
font-
-
font
The font used for the item
- Returns:
-
setIcon
- Parameters:
icon-
-
icon
- Returns:
-
setIndex
- Parameters:
index-
-
index
- Returns:
-
setLocale
See
QStyleOptionViewItem::locale - Parameters:
locale-
-
locale
See
QStyleOptionViewItem::locale - Returns:
-
setShowDecorationSelected
Whether the decoration should be highlighted on selected items
- Parameters:
showDecorationSelected-
-
showDecorationSelected
Whether the decoration should be highlighted on selected items
- Returns:
-
setText
- Parameters:
text-
-
text
- Returns:
-
setTextElideMode
Where ellipsis should be added for text that is too long to fit into an item
- Parameters:
textElideMode-
-
textElideMode
Where ellipsis should be added for text that is too long to fit into an item
- Returns:
-
setViewItemPosition
@QtUninvokable public final void setViewItemPosition(QStyleOptionViewItem.ViewItemPosition viewItemPosition) - Parameters:
viewItemPosition-
-
viewItemPosition
- Returns:
-
setWidget
See
QStyleOptionViewItem::widget - Parameters:
widget-
-
widget
See
QStyleOptionViewItem::widget - Returns:
-
clone
Creates and returns a copy of this object.
See
QStyleOptionViewItem::QStyleOptionViewItem(QStyleOptionViewItem) - Overrides:
clonein classQStyleOption
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionViewItem)instead. -
setBackgroundBrush
Overloaded function for
setBackgroundBrush(io.qt.gui.QBrush). -
setBackgroundBrush
Overloaded function for
setBackgroundBrush(io.qt.gui.QBrush). -
setBackgroundBrush
Overloaded function for
setBackgroundBrush(io.qt.gui.QBrush). -
setBackgroundBrush
Overloaded function for
setBackgroundBrush(io.qt.gui.QBrush). -
setBackgroundBrush
Overloaded function for
setBackgroundBrush(io.qt.gui.QBrush). -
setBackgroundBrush
Overloaded function for
setBackgroundBrush(io.qt.gui.QBrush). -
setDecorationAlignment
Overloaded function for
setDecorationAlignment(io.qt.core.Qt.Alignment). -
setDisplayAlignment
Overloaded function for
setDisplayAlignment(io.qt.core.Qt.Alignment). -
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionViewItem.ViewItemFeatures). -
setFont
Overloaded function for
setFont(io.qt.gui.QFont). -
setIcon
Overloaded function for
setIcon(io.qt.gui.QIcon). -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale). -
setLocale
Overloaded function for
setLocale(io.qt.core.QLocale).
-
assign(io.qt.widgets.QStyleOptionViewItem)instead.