I can't figure out to implement this scenario: I have a qgraficsscene populated with a ruler (qgrapchisitem) on the upper top of the scene, and other qgraphicsitems in the rest of the scene.
When the user use the mouse wheel to perform a zoom-in/out, all the scene is scaled by the view,the ruler too. But I don't want that the ruler is scaled!
I want to keep the rule at the same original size, without changing it's height and with. (intercepting the zooming signals, I will redraw the content of the ruler to appropriate scaling values).
How can I solve this?
Added after 1 3 minutes:
Another thought: it I want that the ruler doesn't change its size, while the other items does, I will face the problem that other items will overlap the rule.
One solution should be to put the ruler on another scene and the ruler view on the top of the items view:it has sense?
Bookmarks