![]() |
CopperSpice API
1.8.1
|
Used to describe the parameters for drawing a focus rectangle with QStyle. More...
Public Types | |
enum | StyleOptionType |
enum | StyleOptionVersion |
![]() | |
enum | OptionType |
enum | StyleOptionType |
enum | StyleOptionVersion |
Public Methods | |
QStyleOptionFocusRect () | |
QStyleOptionFocusRect (const QStyleOptionFocusRect &other) | |
QStyleOptionFocusRect & | operator= (const QStyleOptionFocusRect &other) = default |
![]() | |
QStyleOption (const QStyleOption &other) | |
QStyleOption (int version=QStyleOption::Version, int type=SO_Default) | |
~QStyleOption () | |
void | initFrom (const QWidget *widget) |
QStyleOption & | operator= (const QStyleOption &other) |
Additional Inherited Members | |
![]() | |
int | type |
int | version |
![]() | |
T | qstyleoption_cast (const QStyleOption *option) |
T | qstyleoption_cast (QStyleOption *option) |
The QStyleOptionFocusRect class is used to describe the parameters for drawing a focus rectangle with QStyle.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
This enum is used to hold information about the type of the style option and is defined for each QStyleOption subclass.
Constant | Value | Description |
---|---|---|
QStyleOptionFocusRect::Type | SO_FocusRect | The type of style option provided (SO_FocusRect for this class). |
This enum is used to hold information about the version of the style option and is defined for each QStyleOption subclass.
Constant | Value | Description |
---|---|---|
QStyleOptionFocusRect::Version | 1 | 1 |
QStyleOptionFocusRect::QStyleOptionFocusRect | ( | ) |
Constructs an empty QStyleOptionFocusRect.
|
inline |
Copy constructs a new QStyleOptionFocusRect from other.
|
default |
Copy assigns from other and returns a reference to this object.