![]() |
Qt 6.x
The Qt SDK
|
The QStyleOptionHeaderV2 class is used to describe the parameters for drawing a header. More...
#include <qstyleoption.h>
Inheritance diagram for QStyleOptionHeaderV2:
Collaboration diagram for QStyleOptionHeaderV2:Public Types | |
| enum | StyleOptionType { Type = SO_Header } |
| enum | StyleOptionVersion { Version = 2 } |
Public Types inherited from QStyleOptionHeader | |
| enum | StyleOptionType { Type = SO_Header } |
| This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More... | |
| enum | StyleOptionVersion { Version = 1 } |
| This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More... | |
| enum | SectionPosition { Beginning , Middle , End , OnlyOneSection } |
| \variable QStyleOptionHeader::section More... | |
| enum | SelectedPosition { NotAdjacent , NextIsSelected , PreviousIsSelected , NextAndPreviousAreSelected } |
| This enum lets you know where the section's position is in relation to the selected section. More... | |
| enum | SortIndicator { None , SortUp , SortDown } |
| Indicates which direction the sort indicator should be drawn. More... | |
Public Types inherited from QStyleOption | |
| enum | OptionType { SO_Default , SO_FocusRect , SO_Button , SO_Tab , SO_MenuItem , SO_Frame , SO_ProgressBar , SO_ToolBox , SO_Header , SO_DockWidget , SO_ViewItem , SO_TabWidgetFrame , SO_TabBarBase , SO_RubberBand , SO_ToolBar , SO_GraphicsItem , SO_Complex = 0xf0000 , SO_Slider , SO_SpinBox , SO_ToolButton , SO_ComboBox , SO_TitleBar , SO_GroupBox , SO_SizeGrip , SO_CustomBase = 0xf00 , SO_ComplexCustomBase = 0xf000000 } |
| This enum is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. More... | |
| enum | StyleOptionType { Type = SO_Default } |
| This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More... | |
| enum | StyleOptionVersion { Version = 1 } |
| This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More... | |
Public Member Functions | |
| QStyleOptionHeaderV2 () | |
| Constructs a QStyleOptionHeaderV2, initializing the members variables to their default values. | |
| QStyleOptionHeaderV2 (const QStyleOptionHeaderV2 &other) | |
| QStyleOptionHeaderV2 & | operator= (const QStyleOptionHeaderV2 &)=default |
Public Member Functions inherited from QStyleOptionHeader | |
| QStyleOptionHeader () | |
| Constructs a QStyleOptionHeader, initializing the members variables to their default values. | |
| QStyleOptionHeader (const QStyleOptionHeader &other) | |
| \variable QStyleOptionHeader::orientation | |
| QStyleOptionHeader & | operator= (const QStyleOptionHeader &)=default |
Public Member Functions inherited from QStyleOption | |
| QStyleOption (int version=QStyleOption::Version, int type=SO_Default) | |
| Constructs a QStyleOption with the specified version and type. | |
| QStyleOption (const QStyleOption &other) | |
| Constructs a copy of other. | |
| ~QStyleOption () | |
| Destroys this style option object. | |
| void | initFrom (const QWidget *w) |
| QStyleOption & | operator= (const QStyleOption &other) |
| Assign other to this QStyleOption. | |
Public Attributes | |
| Qt::TextElideMode | textElideMode:2 |
| bool | isSectionDragTarget:1 |
| int | unused:29 |
Public Attributes inherited from QStyleOptionHeader | |
| int | section |
| QString | text |
| Qt::Alignment | textAlignment |
| QIcon | icon |
| Qt::Alignment | iconAlignment |
| SectionPosition | position |
| SelectedPosition | selectedPosition |
| SortIndicator | sortIndicator |
| Qt::Orientation | orientation |
Public Attributes inherited from QStyleOption | |
| int | version |
| int | type |
| QStyle::State | state |
| Qt::LayoutDirection | direction |
| QRect | rect |
| QFontMetrics | fontMetrics |
| QPalette | palette |
| QObject * | styleObject |
Protected Member Functions | |
| QStyleOptionHeaderV2 (int version) | |
Protected Member Functions inherited from QStyleOptionHeader | |
| QStyleOptionHeader (int version) | |
Additional Inherited Members | |
Related Symbols inherited from QStyleOption | |
| template< typename T > T | qstyleoption_cast (const QStyleOption *option) |
| \variable QStyleOptionTitleBar::text | |
| template< typename T > T | qstyleoption_cast (QStyleOption *option) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
The QStyleOptionHeaderV2 class is used to describe the parameters for drawing a header.
\inmodule QtWidgets
Definition at line 197 of file qstyleoption.h.
| Enumerator | |
|---|---|
| Type | |
Definition at line 200 of file qstyleoption.h.
| Enumerator | |
|---|---|
| Version | |
Definition at line 201 of file qstyleoption.h.
| QStyleOptionHeaderV2::QStyleOptionHeaderV2 | ( | ) |
Constructs a QStyleOptionHeaderV2, initializing the members variables to their default values.
Definition at line 855 of file qstyleoption.cpp.
|
inline |
Definition at line 204 of file qstyleoption.h.
References other().
Here is the call graph for this function:
|
protected |
Definition at line 863 of file qstyleoption.cpp.
|
default |
| bool QStyleOptionHeaderV2::isSectionDragTarget |
Definition at line 208 of file qstyleoption.h.
Referenced by QHeaderView::initStyleOptionForIndex().
| Qt::TextElideMode QStyleOptionHeaderV2::textElideMode |
Definition at line 207 of file qstyleoption.h.
Referenced by QHeaderView::initStyleOptionForIndex().
| int QStyleOptionHeaderV2::unused |
Definition at line 209 of file qstyleoption.h.