Zoom in QGraphicsView
Solved
General and Desktop
-
wrote on 2 Jul 2016, 23:23 last edited by
Hi Qt Community ,
How do I zoom in/out in a QGraphicsView ?
(Ofcourse , my QGraphicsScene is wide enough .)Sorry for the short post .
-
Hi Qt Community ,
How do I zoom in/out in a QGraphicsView ?
(Ofcourse , my QGraphicsScene is wide enough .)Sorry for the short post .
Moderatorswrote on 3 Jul 2016, 08:38 last edited by raven-worx 7 Mar 2016, 09:02@Walux
using QTransform and do scaling on it. Then set the trasnformation on the view (QGraphicsView::setTransform()). -
@Walux
using QTransform and do scaling on it. Then set the trasnformation on the view (QGraphicsView::setTransform()).wrote on 3 Jul 2016, 10:04 last edited byYou can also directly use
QGraphicsView::scale()
. -
You can also directly use
QGraphicsView::scale()
.wrote on 3 Jul 2016, 17:06 last edited by Walux 7 Mar 2016, 17:07They're all good answers :)
Thank you very much :)
2/4