![]() |
Qt 6.x
The Qt SDK
|
The QStyleHintReturnMask class provides style hints that return a QRegion. More...
#include <qstyleoption.h>
Public Types | |
enum | StyleOptionType { Type = SH_Mask } |
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 | |
QStyleHintReturnMask () | |
\variable QStyleHintReturnMask::region | |
~QStyleHintReturnMask () | |
Destructor. | |
![]() | |
QStyleHintReturn (int version=QStyleOption::Version, int type=SH_Default) | |
\variable QStyleHintReturn::type | |
~QStyleHintReturn () | |
Public Attributes | |
QRegion | region |
![]() | |
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 QStyleHintReturnMask class provides style hints that return a QRegion.
\inmodule QtWidgets
Definition at line 705 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_Mask} 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 707 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 708 of file qstyleoption.h.
QStyleHintReturnMask::QStyleHintReturnMask | ( | ) |
\variable QStyleHintReturnMask::region
the region for style hints that return a QRegion
Constructs a QStyleHintReturnMask. The member variables are initialized to default values.
Definition at line 3707 of file qstyleoption.cpp.
QStyleHintReturnMask::~QStyleHintReturnMask | ( | ) |
Destructor.
Definition at line 3714 of file qstyleoption.cpp.
QRegion QStyleHintReturnMask::region |
Definition at line 713 of file qstyleoption.h.
Referenced by QMenu::event(), QTipLabel::resizeEvent(), QQC2_NAMESPACE::QMacStyle::sizeFromContents(), QMacStyle::sizeFromContents(), and QMdiSubWindowPrivate::updateMask().