In your resize event, you could try a call to
Qt Code:
To copy to clipboard, switch view to plain text mode
This will maintain the same relative sizes and aspect ratio of everything in the scene, *except* those items with the QGraphicsItem::ItemIgnoresTransformations flag set. So if your tach's rect is square in scene coordinates, it will be square in the view.




Reply With Quote

Bookmarks