Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Zooming paticular area using rubber band
QtWS25 Last Chance

Zooming paticular area using rubber band

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mahesh
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TarunRajSingh
      wrote on last edited by
      #2

      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);@

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved