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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.