- 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
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enumQStyleOptionHeader::SectionPositionstatic enumJava wrapper for Qt enumQStyleOptionHeader::SelectedPositionstatic enumJava wrapper for Qt enumQStyleOptionHeader::SortIndicator -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QStyleOptionHeader arg__1) SeeQStyleOptionHeader::operator=(QStyleOptionHeader) clone()Creates and returns a copy of this object.final QIconicon()The icon of the headerfinal Qt.AlignmentThe alignment flags for the icon of the headerfinal Qt.OrientationThe header's orientation (horizontal or vertical)position()The section's position in relation to the other sectionsfinal intsection()Which section of the header is being paintedThe section's position in relation to the selected sectionfinal voidset(QStyleOptionHeader arg__1) Deprecated.final voidThe icon of the headerfinal voidOverloaded function forsetIcon(io.qt.gui.QIcon).final voidsetIconAlignment(Qt.Alignment iconAlignment) The alignment flags for the icon of the headerfinal voidsetIconAlignment(Qt.AlignmentFlag ... iconAlignment) Overloaded function forsetIconAlignment(io.qt.core.Qt.Alignment).final voidsetOrientation(Qt.Orientation orientation) The header's orientation (horizontal or vertical)final voidThe section's position in relation to the other sectionsfinal voidsetSection(int section) Which section of the header is being paintedfinal voidsetSelectedPosition(QStyleOptionHeader.SelectedPosition selectedPosition) The section's position in relation to the selected sectionfinal voidsetSortIndicator(QStyleOptionHeader.SortIndicator sortIndicator) The direction the sort indicator should be drawnfinal voidThe text of the headerfinal voidsetTextAlignment(Qt.Alignment textAlignment) The alignment flags for the text of the headerfinal voidsetTextAlignment(Qt.AlignmentFlag ... textAlignment) Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment).The direction the sort indicator should be drawnfinal Stringtext()The text of the headerfinal Qt.AlignmentThe 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, toStringMethods 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:
clonein 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.