![]() |
Qt 6.x
The Qt SDK
|
The QStyleHintReturnVariant class provides style hints that return a QVariant. More...
#include <qstyleoption.h>
Public Types | |
enum | StyleOptionType { Type = SH_Variant } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn 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 QStyleHintReturn subclass. More... | |
![]() | |
enum | HintReturnType { SH_Default =0xf000 , SH_Mask , SH_Variant } |
\value SH_Default QStyleHintReturn \value SH_Mask \l QStyle::SH_RubberBand_Mask QStyle::SH_FocusFrame_Mask \value SH_Variant \l QStyle::SH_TextControl_FocusIndicatorTextCharFormat More... | |
enum | StyleOptionType { Type = SH_Default } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn 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 QStyleHintReturn subclass. More... | |
Public Member Functions | |
QStyleHintReturnVariant () | |
\variable QStyleHintReturnVariant::variant | |
~QStyleHintReturnVariant () | |
Destructor. | |
![]() | |
QStyleHintReturn (int version=QStyleOption::Version, int type=SH_Default) | |
\variable QStyleHintReturn::type | |
~QStyleHintReturn () | |
Public Attributes | |
QVariant | variant |
![]() | |
int | version |
int | type |
Additional Inherited Members | |
![]() | |
template< typename T > T | qstyleoption_cast (const QStyleHintReturn *hint) |
Returns a T or \nullptr depending on the \l{QStyleHintReturn::type}{type} and \l{QStyleHintReturn::version}{version} of hint. | |
template< typename T > T | qstyleoption_cast (QStyleHintReturn *hint) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
The QStyleHintReturnVariant class provides style hints that return a QVariant.
\inmodule QtWidgets
Definition at line 716 of file qstyleoption.h.
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn subclass.
\value Type The type of style option provided (\l{SH_Variant} for this class).
The type is used internally by QStyleHintReturn, 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 QStyleHintReturn subclass and your own styles.
Enumerator | |
---|---|
Type |
Definition at line 718 of file qstyleoption.h.
This enum is used to hold information about the version of the style option, and is defined for each QStyleHintReturn subclass.
\value Version 1
The version is used by QStyleHintReturn subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.
Enumerator | |
---|---|
Version |
Definition at line 719 of file qstyleoption.h.
QStyleHintReturnVariant::QStyleHintReturnVariant | ( | ) |
\variable QStyleHintReturnVariant::variant
the variant for style hints that return a QVariant
Constructs a QStyleHintReturnVariant. The member variables are initialized to default values.
Definition at line 3767 of file qstyleoption.cpp.
QStyleHintReturnVariant::~QStyleHintReturnVariant | ( | ) |
Destructor.
Definition at line 3774 of file qstyleoption.cpp.
QVariant QStyleHintReturnVariant::variant |
Definition at line 724 of file qstyleoption.h.