- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionViewItem extends QStyleOption implements 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 Classes Modifier and Type Class Description static class
QStyleOptionViewItem.Position
Java wrapper for Qt enum QStyleOptionViewItem::Positionstatic class
QStyleOptionViewItem.ViewItemFeature
Java wrapper for Qt enum QStyleOptionViewItem::ViewItemFeaturestatic class
QStyleOptionViewItem.ViewItemFeatures
QFlags type for enumQStyleOptionViewItem.ViewItemFeature
static class
QStyleOptionViewItem.ViewItemPosition
Java wrapper for Qt enum QStyleOptionViewItem::ViewItemPosition -
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionViewItem()
protected
QStyleOptionViewItem(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionViewItem(QStyleOptionViewItem other)
-
Method Summary
Modifier and Type Method Description QBrush
backgroundBrush()
Qt.CheckState
checkState()
QStyleOptionViewItem
clone()
Qt.Alignment
decorationAlignment()
The alignment of the decoration for the itemQStyleOptionViewItem.Position
decorationPosition()
The position of the decoration for the itemQSize
decorationSize()
The size of the decoration for the itemQt.Alignment
displayAlignment()
The alignment of the display value for the itemQStyleOptionViewItem.ViewItemFeatures
features()
Bitwise OR of the features that describe this view itemQFont
font()
The font used for the itemQIcon
icon()
QModelIndex
index()
QLocale
locale()
void
set(QStyleOptionViewItem arg__1)
void
setBackgroundBrush(QBrush backgroundBrush)
void
setCheckState(Qt.CheckState checkState)
void
setDecorationAlignment(Qt.Alignment decorationAlignment)
The alignment of the decoration for the itemvoid
setDecorationAlignment(Qt.AlignmentFlag... decorationAlignment)
Overloaded function forsetDecorationAlignment(io.qt.core.Qt.Alignment)
.void
setDecorationPosition(QStyleOptionViewItem.Position decorationPosition)
The position of the decoration for the itemvoid
setDecorationSize(QSize decorationSize)
The size of the decoration for the itemvoid
setDisplayAlignment(Qt.Alignment displayAlignment)
The alignment of the display value for the itemvoid
setDisplayAlignment(Qt.AlignmentFlag... displayAlignment)
Overloaded function forsetDisplayAlignment(io.qt.core.Qt.Alignment)
.void
setFeatures(QStyleOptionViewItem.ViewItemFeature... features)
Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionViewItem.ViewItemFeatures)
.void
setFeatures(QStyleOptionViewItem.ViewItemFeatures features)
Bitwise OR of the features that describe this view itemvoid
setFont(QFont font)
The font used for the itemvoid
setIcon(QIcon icon)
void
setIndex(QModelIndex index)
void
setLocale(QLocale locale)
void
setShowDecorationSelected(boolean showDecorationSelected)
Whether the decoration should be highlighted on selected itemsvoid
setText(String text)
void
setTextElideMode(Qt.TextElideMode textElideMode)
Where ellipsis should be added for text that is too long to fit into an itemvoid
setViewItemPosition(QStyleOptionViewItem.ViewItemPosition viewItemPosition)
void
setWidget(QWidget widget)
boolean
showDecorationSelected()
Whether the decoration should be highlighted on selected itemsString
text()
Qt.TextElideMode
textElideMode()
Where ellipsis should be added for text that is too long to fit into an itemQStyleOptionViewItem.ViewItemPosition
viewItemPosition()
QWidget
widget()
Methods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
-
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:
clone
in classQStyleOption
-