- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionHeader extends QStyleOption implements Cloneable
Used to describe the parameters for drawing a header
Java wrapper for Qt class QStyleOptionHeader
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStyleOptionHeader.SectionPosition
Java wrapper for Qt enum QStyleOptionHeader::SectionPositionstatic class
QStyleOptionHeader.SelectedPosition
Java wrapper for Qt enum QStyleOptionHeader::SelectedPositionstatic class
QStyleOptionHeader.SortIndicator
Java wrapper for Qt enum QStyleOptionHeader::SortIndicator -
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionHeader()
protected
QStyleOptionHeader(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionHeader(QStyleOptionHeader other)
-
Method Summary
Modifier and Type Method Description QStyleOptionHeader
clone()
QIcon
icon()
The icon of the headerQt.Alignment
iconAlignment()
The alignment flags for the icon of the headerQt.Orientation
orientation()
The header's orientation (horizontal or vertical)QStyleOptionHeader.SectionPosition
position()
The section's position in relation to the other sectionsint
section()
Which section of the header is being paintedQStyleOptionHeader.SelectedPosition
selectedPosition()
The section's position in relation to the selected sectionvoid
set(QStyleOptionHeader arg__1)
void
setIcon(QIcon icon)
The icon of the headervoid
setIconAlignment(Qt.Alignment iconAlignment)
The alignment flags for the icon of the headervoid
setIconAlignment(Qt.AlignmentFlag... iconAlignment)
Overloaded function forsetIconAlignment(io.qt.core.Qt.Alignment)
.void
setOrientation(Qt.Orientation orientation)
The header's orientation (horizontal or vertical)void
setPosition(QStyleOptionHeader.SectionPosition position)
The section's position in relation to the other sectionsvoid
setSection(int section)
Which section of the header is being paintedvoid
setSelectedPosition(QStyleOptionHeader.SelectedPosition selectedPosition)
The section's position in relation to the selected sectionvoid
setSortIndicator(QStyleOptionHeader.SortIndicator sortIndicator)
The direction the sort indicator should be drawnvoid
setText(String text)
The text of the headervoid
setTextAlignment(Qt.Alignment textAlignment)
The alignment flags for the text of the headervoid
setTextAlignment(Qt.AlignmentFlag... textAlignment)
Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment)
.QStyleOptionHeader.SortIndicator
sortIndicator()
The direction the sort indicator should be drawnString
text()
The text of the headerQt.Alignment
textAlignment()
The alignment flags for the text of the headerMethods 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
-
QStyleOptionHeader
public QStyleOptionHeader() -
QStyleOptionHeader
-
QStyleOptionHeader
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setIcon
The icon of the header
-
icon
The icon of the header
-
setIconAlignment
Overloaded function for
setIconAlignment(io.qt.core.Qt.Alignment)
. -
setIconAlignment
The alignment flags for the icon of the header
-
iconAlignment
The alignment flags for the icon of the header
-
setOrientation
The header's orientation (horizontal or vertical)
-
orientation
The header's orientation (horizontal or vertical)
-
setPosition
The section's position in relation to the other sections
-
position
The section's position in relation to the other sections
-
setSection
Which section of the header is being painted
-
section
Which section of the header is being painted
-
setSelectedPosition
@QtUninvokable public final void setSelectedPosition(QStyleOptionHeader.SelectedPosition selectedPosition)The section's position in relation to the selected section
-
selectedPosition
The section's position in relation to the selected section
-
setSortIndicator
The direction the sort indicator should be drawn
-
sortIndicator
The direction the sort indicator should be drawn
-
setText
The text of the header
-
text
The text of the header
-
setTextAlignment
Overloaded function for
setTextAlignment(io.qt.core.Qt.Alignment)
. -
setTextAlignment
The alignment flags for the text of the header
-
textAlignment
The alignment flags for the text of the header
-
clone
- Overrides:
clone
in classQStyleOption
-