Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Zooming paticular area using rubber band



  • hi..i am now working with graphicsview i want to create zooming option with rubber band seclection..when ever i select a paticular area whith mouse it should zoom to that area...Is it possible can some one please help me



  • set flag in your graphics view constructor

    @setDragMode(QGraphicsView::RubberBandDrag);@

    it does not work for non interactive views ,make sure you have this as well

    @setInteractive(true);@


Log in to reply