- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Used to describe the parameters used to draw an item in a view widget
Java wrapper for Qt's class QStyleOptionViewItem
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QStyleOptionViewItem::Positionstatic enum
Java wrapper for Qt enum QStyleOptionViewItem::ViewItemFeaturestatic final class
QFlags type for enumQStyleOptionViewItem.ViewItemFeature
static enum
Java wrapper for Qt enum QStyleOptionViewItem::ViewItemPositionNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOptionViewItem arg__1) final QBrush
final Qt.CheckState
clone()
final Qt.Alignment
The alignment of the decoration for the itemThe position of the decoration for the itemfinal QSize
The size of the decoration for the itemfinal Qt.Alignment
The alignment of the display value for the itemfeatures()
Bitwise OR of the features that describe this view itemfinal QFont
font()
The font used for the itemfinal QBrush
Kotlin property getter.final Qt.CheckState
Kotlin property getter.final Qt.Alignment
Kotlin property getter.Kotlin property getter.final QSize
Kotlin property getter.final Qt.Alignment
Kotlin property getter.Kotlin property getter.final QFont
getFont()
Kotlin property getter.final QIcon
getIcon()
Kotlin property getter.final QModelIndex
getIndex()
Kotlin property getter.final QLocale
Kotlin property getter.final boolean
Kotlin property getter.final String
getText()
Kotlin property getter.final Qt.TextElideMode
Kotlin property getter.Kotlin property getter.final QWidget
Kotlin property getter.final QIcon
icon()
final QModelIndex
index()
final QLocale
locale()
final void
set
(QStyleOptionViewItem arg__1) Deprecated.final void
setBackgroundBrush
(QBrush backgroundBrush) final void
setCheckState
(Qt.CheckState checkState) final void
setDecorationAlignment
(Qt.Alignment decorationAlignment) The alignment of the decoration for the itemfinal void
setDecorationAlignment
(Qt.AlignmentFlag ... decorationAlignment) Overloaded function forsetDecorationAlignment(io.qt.core.Qt.Alignment)
.final void
setDecorationPosition
(QStyleOptionViewItem.Position decorationPosition) The position of the decoration for the itemfinal void
setDecorationSize
(QSize decorationSize) The size of the decoration for the itemfinal void
setDisplayAlignment
(Qt.Alignment displayAlignment) The alignment of the display value for the itemfinal void
setDisplayAlignment
(Qt.AlignmentFlag ... displayAlignment) Overloaded function forsetDisplayAlignment(io.qt.core.Qt.Alignment)
.final void
setFeatures
(QStyleOptionViewItem.ViewItemFeature ... features) Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionViewItem.ViewItemFeatures)
.final void
Bitwise OR of the features that describe this view itemfinal void
The font used for the itemfinal void
final void
setIndex
(QModelIndex index) final void
final void
setShowDecorationSelected
(boolean showDecorationSelected) Whether the decoration should be highlighted on selected itemsfinal void
final void
setTextElideMode
(Qt.TextElideMode textElideMode) Where ellipsis should be added for text that is too long to fit into an itemfinal void
setViewItemPosition
(QStyleOptionViewItem.ViewItemPosition viewItemPosition) final void
final boolean
Whether the decoration should be highlighted on selected itemsfinal String
text()
final Qt.TextElideMode
Where ellipsis should be added for text that is too long to fit into an itemfinal QWidget
widget()
Methods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, getDirection, getFontMetrics, getPalette, getRect, getState, getStyleObject, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
Methods 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
Deprecated.Useassign(io.qt.widgets.QStyleOptionViewItem)
instead. -
assign
-
setBackgroundBrush
-
getBackgroundBrush
Kotlin property getter. In Java use
backgroundBrush()
instead. -
backgroundBrush
-
setCheckState
-
getCheckState
Kotlin property getter. In Java use
checkState()
instead. -
checkState
-
setDecorationAlignment
Overloaded function for
setDecorationAlignment(io.qt.core.Qt.Alignment)
. -
setDecorationAlignment
The alignment of the decoration for the item
-
getDecorationAlignment
Kotlin property getter. In Java use
decorationAlignment()
instead. -
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
-
getDecorationPosition
Kotlin property getter. In Java use
decorationPosition()
instead. -
decorationPosition
The position of the decoration for the item
-
setDecorationSize
The size of the decoration for the item
-
getDecorationSize
Kotlin property getter. In Java use
decorationSize()
instead. -
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
-
getDisplayAlignment
Kotlin property getter. In Java use
displayAlignment()
instead. -
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
-
getFeatures
Kotlin property getter. In Java use
features()
instead. -
features
Bitwise OR of the features that describe this view item
-
setFont
The font used for the item
-
getFont
Kotlin property getter. In Java use
font()
instead. -
font
The font used for the item
-
setIcon
-
getIcon
Kotlin property getter. In Java use
icon()
instead. -
icon
-
setIndex
-
getIndex
Kotlin property getter. In Java use
index()
instead. -
index
-
setLocale
-
getLocale
Kotlin property getter. In Java use
locale()
instead. -
locale
-
setShowDecorationSelected
Whether the decoration should be highlighted on selected items
-
getShowDecorationSelected
Kotlin property getter. In Java use
showDecorationSelected()
instead. -
showDecorationSelected
Whether the decoration should be highlighted on selected items
-
setText
-
getText
Kotlin property getter. In Java use
text()
instead. -
text
-
setTextElideMode
Where ellipsis should be added for text that is too long to fit into an item
-
getTextElideMode
Kotlin property getter. In Java use
textElideMode()
instead. -
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) -
getViewItemPosition
Kotlin property getter. In Java use
viewItemPosition()
instead. -
viewItemPosition
-
setWidget
-
getWidget
Kotlin property getter. In Java use
widget()
instead. -
widget
-
clone
- Overrides:
clone
in classQStyleOption
-
assign(io.qt.widgets.QStyleOptionViewItem)
instead.