QStyleOptionHeader Class ReferenceThe QStyleOptionHeader class is used to describe the parameters for drawing a header. Далее... #include <QStyleOptionHeader> Унаследован от: QStyleOption. Открытые типы
Открытые функции
Public Variables
Подробное описаниеThe QStyleOptionHeader class is used to describe the parameters for drawing a header. QStyleOptionHeader contains all the information that QStyle functions need to draw the item views' header pane, header sort arrow, and header label. For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions. For an example demonstrating how style options can be used, see the Styles example. See also QStyleOption. Описание типов-членовenum QStyleOptionHeader::SectionPositionThis enum lets you know where the section's position is in relation to the other sections.
See also position. enum QStyleOptionHeader::SelectedPositionThis enum lets you know where the section's position is in relation to the selected section.
See also selectedPosition. enum QStyleOptionHeader::SortIndicatorIndicates which direction the sort indicator should be drawn
See also sortIndicator. enum QStyleOptionHeader::StyleOptionTypeThis enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
The type is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleOption subclass and your own styles. Смотрите также StyleOptionVersion. enum QStyleOptionHeader::StyleOptionVersionThis enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass.
The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it. Смотрите также StyleOptionType. Описание функций-членовQStyleOptionHeader::QStyleOptionHeader ()Constructs a QStyleOptionHeader, initializing the members variables to their default values. QStyleOptionHeader::QStyleOptionHeader ( const QStyleOptionHeader & other )Constructs a copy of the other style option. Описание типовQIcon QStyleOptionHeader::iconThis variable holds the icon of the header. The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename. Qt::Alignment QStyleOptionHeader::iconAlignmentThis variable holds the alignment flags for the icon of the header. The default value is Qt::AlignLeft. Qt::Orientation QStyleOptionHeader::orientationThis variable holds the header's orientation (horizontal or vertical). The default orientation is Qt::Horizontal SectionPosition QStyleOptionHeader::positionThis variable holds the section's position in relation to the other sections. The default value is QStyleOptionHeader::Beginning. int QStyleOptionHeader::sectionThis variable holds which section of the header is being painted. Значение по умолчанию равно 0. SelectedPosition QStyleOptionHeader::selectedPositionThis variable holds the section's position in relation to the selected section. The default value is QStyleOptionHeader::NotAdjacent SortIndicator QStyleOptionHeader::sortIndicatorThis variable holds the direction the sort indicator should be drawn. The default value is QStyleOptionHeader::None. QString QStyleOptionHeader::textThis variable holds the text of the header. The default value is an empty string. Qt::Alignment QStyleOptionHeader::textAlignmentThis variable holds the alignment flags for the text of the header. The default value is Qt::AlignLeft. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |