QStyleOptionHeader Class
The QStyleOptionHeader class describes the parameters for drawing one section of a header. More…
| Header | #include <QStyleOptionHeader> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Widgets) |
| Module | Nt Widgets C++ Classes |
| Inherits | QStyleOption |
List of all members, including inherited members
Public Types
| enum | SortIndicator |
Public Functions
Public Variables
| Qt::Orientation | orientation |
| QString | text |
| Qt::Alignment | textAlignment |
| bool | lastSection |
| SortIndicator | sortIndicator |
Detailed Description
See also QStyleOption and QHeaderView.
Member Type Documentation
enum QStyleOptionHeader::SortIndicator
The arrow that a section shows for the order that its column is sorted in.
| Constant | Description |
|---|---|
QStyleOptionHeader::None | No arrow: the column is not the one that is sorted by. |
QStyleOptionHeader::SortUp | The arrow of the descending order. |
QStyleOptionHeader::SortDown | The arrow of the ascending order. |
Member Function Documentation
QStyleOptionHeader::QStyleOptionHeader()
Constructs an option for a header section.
Member Variable Documentation
bool QStyleOptionHeader::lastSection
Whether this is the last section of the header, which has no separator after it.
Qt::Orientation QStyleOptionHeader::orientation
The direction of the header: horizontal for the column headers of a table, vertical for the row headers.
SortIndicator QStyleOptionHeader::sortIndicator
The arrow of the sort order that the section shows; None by default.
QString QStyleOptionHeader::text
The text of the section.
Qt::Alignment QStyleOptionHeader::textAlignment
How the text is placed in the section, centered by default.