Obsolete Members for QStyleOptionGraphicsItem
The following members of class QStyleOptionGraphicsItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Member Variable Documentation
Use QStyleOptionGraphicsItem::levelOfDetailFromTransform() together with QPainter::worldTransform() instead.
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() implementation.
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.
This member is only initialized for items that have the QGraphicsItem::ItemUsesExtendedStyleOption flag set.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.