Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QStyleOptionHeader Class Reference
[QtGui module]

The QStyleOptionHeader class is used to describe the parameters for drawing a header. More...

#include <QStyleOptionHeader>

Inherits QStyleOption.

Public Types

Public Functions

Public Variables

Static Public Members


Detailed Description

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.


Member Type Documentation

enum QStyleOptionHeader::SectionPosition

This enum lets you know where the section's position is in relation to the other sections.

ConstantValueDescription
QStyleOptionHeader::Beginning0At the beginining of the header
QStyleOptionHeader::Middle1In the middle of the header
QStyleOptionHeader::End2At the end of the header
QStyleOptionHeader::OnlyOneSection3Only one header section

enum QStyleOptionHeader::SelectedPosition

This enum lets you know where the section's position is in relation to the selected section.

ConstantValueDescription
QStyleOptionHeader::NotAdjacent0Not adjacent to the selected section
QStyleOptionHeader::NextIsSelected1The next section is selected
QStyleOptionHeader::PreviousIsSelected2The previous section is selected
QStyleOptionHeader::NextAndPreviousAreSelected3Both the next and previous section are selected

enum QStyleOptionHeader::SortIndicator

Indicates which direction the sort indicator should be drawn

ConstantValueDescription
QStyleOptionHeader::None0No sort indicator is needed
QStyleOptionHeader::SortUp1Draw an up indicator
QStyleOptionHeader::SortDown2Draw a down indicator

Member Function Documentation

QStyleOptionHeader::QStyleOptionHeader ()

Constructs a QStyleOptionHeader. The members variables are initialized to default values.

QStyleOptionHeader::QStyleOptionHeader ( const QStyleOptionHeader & other )

Constructs a copy of the other style option.


Member Variable Documentation

const int QStyleOptionHeader::Type

Equals SO_Header.

const int QStyleOptionHeader::Version

Equals 1.

QIcon QStyleOptionHeader::icon

This variable holds the icon of the header.

Qt::Alignment QStyleOptionHeader::iconAlignment

This variable holds the alignment flags for the icon of the header.

See also Qt::Alignment.

Qt::Orientation QStyleOptionHeader::orientation

This variable holds the header's orientation (horizontal or vertical).

See also Qt::Orientation.

SectionPosition QStyleOptionHeader::position

This variable holds the section's position in relation to the other sections.

int QStyleOptionHeader::section

This variable holds which section of the header is being painted.

SelectedPosition QStyleOptionHeader::selectedPosition

This variable holds the section's position in relation to the selected section.

SortIndicator QStyleOptionHeader::sortIndicator

This variable holds the direction the sort indicator should be drawn.

QString QStyleOptionHeader::text

This variable holds the text of the header.

Qt::Alignment QStyleOptionHeader::textAlignment

This variable holds the alignment flags for the text of the header.

See also Qt::Alignment.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz