Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGraphicsView scale to contents
Misty River last edited by
Hi, I have a GraphicsView which contains a buncha pixmaps and has a fixed maximal size.. meaning the scrollbars are turned off.. I would like to know if there is a flag or an easy way to tell the view to automatically scale the content when it is shrinked so that the entire scene is still visible ??
cincirin last edited by
Is "fitInView":http://qt-project.org/doc/qt-4.8/qgraphicsview.html#fitInView what you are looking for ?