- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QStyleOptionHeaderV2
Used to describe the parameters for drawing a header
Java wrapper for Qt class QStyleOptionHeader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQStyleOptionHeader::SectionPosition
static enum
Java wrapper for Qt enumQStyleOptionHeader::SelectedPosition
static enum
Java wrapper for Qt enumQStyleOptionHeader::SortIndicator
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOptionHeader arg__1) SeeQStyleOptionHeader::
operator=(QStyleOptionHeader) clone()
Creates and returns a copy of this object.final QIcon
icon()
The icon of the headerfinal Qt.Alignment
The alignment flags for the icon of the headerfinal Qt.Orientation
The header's orientation (horizontal or vertical)position()
The section's position in relation to the other sectionsfinal int
section()
Which section of the header is being paintedThe section's position in relation to the selected sectionfinal void
set
(QStyleOptionHeader arg__1) Deprecated.final void
The icon of the headerfinal void
Overloaded function forsetIcon(io.qt.gui.QIcon)
.final void
setIconAlignment
(Qt.Alignment iconAlignment) The alignment flags for the icon of the headerfinal void
setIconAlignment
(Qt.AlignmentFlag ... iconAlignment) Overloaded function forsetIconAlignment(io.qt.core.Qt.Alignment)
.final void
setOrientation
(Qt.Orientation orientation) The header's orientation (horizontal or vertical)final void
The section's position in relation to the other sectionsfinal void
setSection
(int section) Which section of the header is being paintedfinal void
setSelectedPosition
(QStyleOptionHeader.SelectedPosition selectedPosition) The section's position in relation to the selected sectionfinal void
setSortIndicator
(QStyleOptionHeader.SortIndicator sortIndicator) The direction the sort indicator should be drawnfinal void
The text of the headerfinal void
setTextAlignment
(Qt.Alignment textAlignment) The alignment flags for the text of the headerfinal void
setTextAlignment
(Qt.AlignmentFlag ... textAlignment) Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment)
.The direction the sort indicator should be drawnfinal String
text()
The text of the headerfinal Qt.Alignment
The alignment flags for the text of the headerMethods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, 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
-
QStyleOptionHeader
public QStyleOptionHeader() -
QStyleOptionHeader
- Parameters:
other
-
-
-
Method Details
-
assign
See
QStyleOptionHeader::
operator=(QStyleOptionHeader) - Parameters:
arg__1
-
-
setIcon
The icon of the header
- Parameters:
icon
-
-
icon
The icon of the header
- Returns:
-
setIconAlignment
The alignment flags for the icon of the header
- Parameters:
iconAlignment
-
-
iconAlignment
The alignment flags for the icon of the header
- Returns:
-
setOrientation
The header's orientation (horizontal or vertical)
- Parameters:
orientation
-
-
orientation
The header's orientation (horizontal or vertical)
- Returns:
-
setPosition
The section's position in relation to the other sections
- Parameters:
position
-
-
position
The section's position in relation to the other sections
- Returns:
-
setSection
Which section of the header is being painted
- Parameters:
section
-
-
section
Which section of the header is being painted
- Returns:
-
setSelectedPosition
@QtUninvokable public final void setSelectedPosition(QStyleOptionHeader.SelectedPosition selectedPosition) The section's position in relation to the selected section
- Parameters:
selectedPosition
-
-
selectedPosition
The section's position in relation to the selected section
- Returns:
-
setSortIndicator
The direction the sort indicator should be drawn
- Parameters:
sortIndicator
-
-
sortIndicator
The direction the sort indicator should be drawn
- Returns:
-
setText
The text of the header
- Parameters:
text
-
-
text
The text of the header
- Returns:
-
setTextAlignment
The alignment flags for the text of the header
- Parameters:
textAlignment
-
-
textAlignment
The alignment flags for the text of the header
- Returns:
-
clone
Creates and returns a copy of this object.
See
QStyleOptionHeader::
QStyleOptionHeader(QStyleOptionHeader) - Overrides:
clone
in classQStyleOption
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionHeader)
instead. -
setIcon
Overloaded function for
setIcon(io.qt.gui.QIcon)
. -
setIconAlignment
Overloaded function for
setIconAlignment(io.qt.core.Qt.Alignment)
. -
setTextAlignment
Overloaded function for
setTextAlignment(io.qt.core.Qt.Alignment)
.
-
assign(io.qt.widgets.QStyleOptionHeader)
instead.