Skip to content

PythonQt.QtGui.QStyleOptionGraphicsItem · declarations 001

Back to PythonQt.QtGui.QStyleOptionGraphicsItem

exposedRect instance-attribute

exposedRect: QRectF

levelOfDetail instance-attribute

levelOfDetail: Any

levelOfDetailFromTransform

levelOfDetailFromTransform(worldTransform: Any) -> float

X.levelOfDetailFromTransform(worldTransform) -> float

Supplemental documentation: Qt 5 reference:

[static] qreal QStyleOptionGraphicsItem::levelOfDetailFromTransform(const QTransform \&worldTransform)

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.

This function was introduced in Qt 4.6.

See also QGraphicsScene::minimumRenderSize().

Upstream PySide2 reference signatures (binding differences may apply):

levelOfDetailFromTransform(worldTransform: PySide2.QtGui.QTransform) -> float

Source: https://doc.qt.io/archives/qt-5.15/qstyleoptiongraphicsitem.html#levelOfDetailFromTransform

matrix instance-attribute

matrix: QMatrix