I don't get you wysota by "Use the level of detail capabilities of graphics view framework."?
Gopal, I am using Pixmap, Text and Rectangle items for now.
Regards,
Manoj
You can implement an item that will use high resolution drawing when the level of detail is high and in low resolution when the item is scaled down.qreal QStyleOptionGraphicsItem::levelOfDetail
This variable holds a simple metric for determining an item's level of detail.
This simple metric provides an easy way to determine the level of detail for an item. Its value represents the maximum value of the height and width of a unity rectangle, mapped using the complete transformation matrix 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.
For more advanced level-of-detail metrics, use QStyleOptionGraphicsItem::matrix directly.
See also QStyleOptionGraphicsItem::matrix.
Bookmarks