6.0.0-rc4Source

QStyleOptionHeader Class

The QStyleOptionHeader class describes the parameters for drawing one section of a header. More…

Header#include <QStyleOptionHeader>
CMaketarget_link_libraries(app PRIVATE Nt::Widgets)
ModuleNt Widgets C++ Classes
InheritsQStyleOption

List of all members, including inherited members

Public Types

Public Functions

Public Variables

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.

ConstantDescription
QStyleOptionHeader::NoneNo arrow: the column is not the one that is sorted by.
QStyleOptionHeader::SortUpThe arrow of the descending order.
QStyleOptionHeader::SortDownThe 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.