![]() |
Qt 6.x
The Qt SDK
|
#include <qquickstyleoption.h>
Public Types | |
enum | StyleOptionType { Type = SO_GraphicsItem } |
enum | StyleOptionVersion { Version = 1 } |
![]() | |
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 } |
enum | StyleOptionType { Type = SO_Default } |
enum | StyleOptionVersion { Version = 1 } |
Public Member Functions | |
QStyleOptionGraphicsItem () | |
Constructs a QStyleOptionGraphicsItem. | |
QStyleOptionGraphicsItem (const QStyleOptionGraphicsItem &other) | |
QStyleOptionGraphicsItem & | operator= (const QStyleOptionGraphicsItem &)=default |
![]() | |
QStyleOption (int version=QStyleOption::Version, int type=SO_Default) | |
QStyleOption (const QStyleOption &other) | |
Constructs a copy of other. | |
~QStyleOption () | |
Destroys this style option object. | |
QStyleOption & | operator= (const QStyleOption &other) |
Assign other to this QStyleOption. | |
Static Public Member Functions | |
static qreal | levelOfDetailFromTransform (const QTransform &worldTransform) |
Public Attributes | |
QRectF | exposedRect |
qreal | levelOfDetail |
![]() | |
int | version |
int | type |
QStyle::State | state |
Qt::LayoutDirection | direction |
QRect | rect |
QFontMetrics | fontMetrics |
QPalette | palette |
QObject * | styleObject |
QQuickItem * | control |
QWindow * | window |
Protected Member Functions | |
QStyleOptionGraphicsItem (int version) | |
Definition at line 651 of file qquickstyleoption.h.
Enumerator | |
---|---|
Type |
Definition at line 654 of file qquickstyleoption.h.
Enumerator | |
---|---|
Version |
Definition at line 655 of file qquickstyleoption.h.
QStyleOptionGraphicsItem::QStyleOptionGraphicsItem | ( | ) |
Constructs a QStyleOptionGraphicsItem.
Definition at line 454 of file qquickstyleoption.cpp.
|
inline |
Definition at line 661 of file qquickstyleoption.h.
References other().
|
protected |
Definition at line 459 of file qquickstyleoption.cpp.
|
static |
Returns the level of detail from the worldTransform.
Its value represents the maximum value of the height and width of a unity rectangle, mapped using the worldTransform of the painter used to draw the item. By default, if no transformations are applied, its value is 1. If zoomed out 1:2, the level of detail will be 0.5, and if zoomed in 2:1, its value is 2.
Definition at line 477 of file qquickstyleoption.cpp.
References QTransform::map(), qSqrt(), QTransform::TxTranslate, QTransform::type(), and v1.
|
default |
QRectF QQC2::QStyleOptionGraphicsItem::exposedRect |
Definition at line 657 of file qquickstyleoption.h.
qreal QQC2::QStyleOptionGraphicsItem::levelOfDetail |
Definition at line 658 of file qquickstyleoption.h.