CopperSpice API
1.9.2
|
The QStyleHintReturn class provides style hints which return more than basic data types. More...
Public Types | |
enum | HintReturnType |
enum | StyleOptionType |
enum | StyleOptionVersion |
Public Methods | |
QStyleHintReturn (int version=QStyleOption::Version, int type=SH_Default) | |
Related Functions | |
These are not member functions | |
T | qstyleoption_cast (const QStyleHintReturn *hint) |
T | qstyleoption_cast (QStyleHintReturn *hint) |
The QStyleHintReturn class provides style hints which return more than basic data types.
QStyleHintReturn and its subclasses are used to pass information from a style back to the querying widget. This is most useful when the return value from QStyle::styleHint() does not provide enough detail. For example, when a mask is to be returned.
Constant | Value | Description |
---|---|---|
QStyleHintReturn::SH_Default | 0xf000 | QStyleHintReturn |
QStyleHintReturn::SH_Mask | ? | QStyle::SH_RubberBand_Mask QStyle::SH_FocusFrame_Mask |
QStyleHintReturn::SH_Variant | ? | QStyle::SH_TextControl_FocusIndicatorTextCharFormat |
This enum is used to hold information about the type of the style option and is defined for each QStyleHintReturn subclass.
Constant | Value | Description |
---|---|---|
QStyleHintReturn::Type | SH_Default | The type of style option provided (SH_Default for this class). |
This enum is used to hold information about the version of the style option and is defined for each QStyleHintReturn subclass.
Constant | Value | Description |
---|---|---|
QStyleHintReturn::Version | 1 | 1 |
QStyleHintReturn::QStyleHintReturn | ( | int | version = QStyleOption::Version , |
int | type = SH_Default |
||
) |
Constructs a QStyleHintReturn with version and type. The version has no special meaning for QStyleHintReturn however it can be used by a subclass to distinguish between different version of the same hint type.
|
related |
Returns a T or nullptr depending on the type and version of hint.
|
related |
Returns a T or nullptr depending on the type of hint.