Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QStyleOptionHeaderV2 Class Reference

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)
 
QStyleOptionHeaderV2operator= (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
 
QStyleOptionHeaderoperator= (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)
 
QStyleOptionoperator= (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
 
QObjectstyleObject
 

Protected Member Functions

 QStyleOptionHeaderV2 (int version)
 
- Protected Member Functions inherited from QStyleOptionHeader
 QStyleOptionHeader (int version)
 

Additional Inherited Members

Detailed Description

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

\inmodule QtWidgets

Definition at line 197 of file qstyleoption.h.

Member Enumeration Documentation

◆ StyleOptionType

Enumerator
Type 

Definition at line 200 of file qstyleoption.h.

◆ StyleOptionVersion

Enumerator
Version 

Definition at line 201 of file qstyleoption.h.

Constructor & Destructor Documentation

◆ QStyleOptionHeaderV2() [1/3]

QStyleOptionHeaderV2::QStyleOptionHeaderV2 ( )

Constructs a QStyleOptionHeaderV2, initializing the members variables to their default values.

Definition at line 855 of file qstyleoption.cpp.

◆ QStyleOptionHeaderV2() [2/3]

QStyleOptionHeaderV2::QStyleOptionHeaderV2 ( const QStyleOptionHeaderV2 & other)
inline

Definition at line 204 of file qstyleoption.h.

References other().

+ Here is the call graph for this function:

◆ QStyleOptionHeaderV2() [3/3]

QStyleOptionHeaderV2::QStyleOptionHeaderV2 ( int version)
protected

Definition at line 863 of file qstyleoption.cpp.

Member Function Documentation

◆ operator=()

QStyleOptionHeaderV2 & QStyleOptionHeaderV2::operator= ( const QStyleOptionHeaderV2 & )
default

Member Data Documentation

◆ isSectionDragTarget

bool QStyleOptionHeaderV2::isSectionDragTarget

Definition at line 208 of file qstyleoption.h.

◆ textElideMode

Qt::TextElideMode QStyleOptionHeaderV2::textElideMode

Definition at line 207 of file qstyleoption.h.

◆ unused

int QStyleOptionHeaderV2::unused

Definition at line 209 of file qstyleoption.h.


The documentation for this class was generated from the following files: