Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QStyleOptionHeader class is used to describe the parameters for drawing a header. More...
#include <QStyleOptionHeader>
Inherits QStyleOption.
The QStyleOptionHeader class is used to describe the parameters for drawing a header.
The QStyleOptionHeader class is used for drawing the item views' header pane, header sort arrow, and header label.
This enum lets you know where the section's position is in relation to the other sections.
Constant | Value | Description |
---|---|---|
QStyleOptionHeader::Beginning | 0 | At the beginining of the header |
QStyleOptionHeader::Middle | 1 | In the middle of the header |
QStyleOptionHeader::End | 2 | At the end of the header |
QStyleOptionHeader::OnlyOneSection | 3 | Only one header section |
This enum lets you know where the section's position is in relation to the selected section.
Constant | Value | Description |
---|---|---|
QStyleOptionHeader::NotAdjacent | 0 | Not adjacent to the selected section |
QStyleOptionHeader::NextIsSelected | 1 | The next section is selected |
QStyleOptionHeader::PreviousIsSelected | 2 | The previous section is selected |
QStyleOptionHeader::NextAndPreviousAreSelected | 3 | Both the next and previous section are selected |
Indicates which direction the sort indicator should be drawn
Constant | Value | Description |
---|---|---|
QStyleOptionHeader::None | 0 | No sort indicator is needed |
QStyleOptionHeader::SortUp | 1 | Draw an up indicator |
QStyleOptionHeader::SortDown | 2 | Draw a down indicator |
Constructs a QStyleOptionHeader. The members variables are initialized to default values.
Constructs a copy of the other style option.
Equals SO_Header.
Equals 1.
This variable holds the icon of the header.
This variable holds the alignment flags for the icon of the header.
See also Qt::Alignment.
This variable holds the header's orientation (horizontal or vertical).
See also Qt::Orientation.
This variable holds the section's position in relation to the other sections.
This variable holds which section of the header is being painted.
This variable holds the section's position in relation to the selected section.
This variable holds the direction the sort indicator should be drawn.
This variable holds the text of the header.
This variable holds the alignment flags for the text of the header.
See also Qt::Alignment.
Copyright © 2006 Trolltech | Trademarks | Qt 4.1.3 |