Qt Code:
fitInView(scene()->itemsBoundingRect(), Qt::KeepAspectRatio);To copy to clipboard, switch view to plain text mode
Qt Code:
fitInView(scene()->itemsBoundingRect(), Qt::KeepAspectRatio);To copy to clipboard, switch view to plain text mode
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
Problem solved!!!![]()
The problem was with the size of scene rect. The scene rect was smaller than the viewport rect. After setting this right, it works without any problem.![]()
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
what exactly did you do? you made the scene size equal or greater than the view size?
Image Analysis Development Framework Using Qt (IADFUQ)
Equal. Setting it larger will cause the view to add scrollbars.
sincnarf (19th October 2007)
Bookmarks