以下成員源於類 QStyleOptionGraphicsItem 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
qreal
|
levelOfDetail |
(obsolete)
QMatrix
|
matrix |
使用 QStyleOptionGraphicsItem::levelOfDetailFromTransform () together with QPainter::worldTransform () 代替。
This variable holds the complete transformation matrix for the item
The QMatrix provided through this member does include information about any perspective transformations applied to the view or item. To get the correct transformation matrix, use QPainter::transform () on the painter passed into the QGraphicsItem::paint () 實現。
This matrix is the combination of the item's scene matrix and the matrix of the painter used for drawing the item. It is provided for convenience, allowing anvanced level-of-detail metrics that can be used to speed up item drawing.
To find the dimensions of an item in screen coordinates (i.e., pixels), you can use the mapping functions of QMatrix ,譬如 QMatrix::map ().
This member is only initialized for items that have the QGraphicsItem::ItemUsesExtendedStyleOption 設置標誌。
另請參閱 QStyleOptionGraphicsItem::levelOfDetailFromTransform ().