- 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
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQStyleOptionViewItem::Position
static enum
Java wrapper for Qt enumQStyleOptionViewItem::ViewItemFeature
static final class
QFlags
type for enumQStyleOptionViewItem.ViewItemFeature
static enum
Java wrapper for Qt enumQStyleOptionViewItem::ViewItemPosition
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOptionViewItem arg__1) SeeQStyleOptionViewItem::
operator=(QStyleOptionViewItem) final QBrush
final Qt.CheckState
clone()
Creates and returns a copy of this object.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 QIcon
icon()
final QModelIndex
index()
final QLocale
locale()
SeeQStyleOptionViewItem::
locale final void
set
(QStyleOptionViewItem arg__1) Deprecated.final void
setBackgroundBrush
(Qt.BrushStyle backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush)
.final void
setBackgroundBrush
(Qt.GlobalColor backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush)
.final void
setBackgroundBrush
(QBrush backgroundBrush) final void
setBackgroundBrush
(QColor backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush)
.final void
setBackgroundBrush
(QGradient backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush)
.final void
setBackgroundBrush
(QImage backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush)
.final void
setBackgroundBrush
(QPixmap backgroundBrush) Overloaded function forsetBackgroundBrush(io.qt.gui.QBrush)
.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
Overloaded function forsetFont(io.qt.gui.QFont)
.final void
final void
Overloaded function forsetIcon(io.qt.gui.QIcon)
.final void
setIndex
(QModelIndex index) final void
SeeQStyleOptionViewItem::
locale final void
setLocale
(QLocale.Language locale) Overloaded function forsetLocale(io.qt.core.QLocale)
.final void
Overloaded function forsetLocale(io.qt.core.QLocale)
.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
SeeQStyleOptionViewItem::
widget 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()
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, toString
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOptionViewItem
public QStyleOptionViewItem() -
QStyleOptionViewItem
-
-
Method Details
-
assign
See
QStyleOptionViewItem::
operator=(QStyleOptionViewItem) -
setBackgroundBrush
-
backgroundBrush
-
setCheckState
-
checkState
-
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
The alignment of the display value for the item
-
displayAlignment
The alignment of the display value for the item
-
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
See
QStyleOptionViewItem::
locale -
locale
See
QStyleOptionViewItem::
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
See
QStyleOptionViewItem::
widget -
widget
See
QStyleOptionViewItem::
widget -
clone
Creates and returns a copy of this object.
- Overrides:
clone
in 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.