Results 1 to 6 of 6

Thread: Zooming with rubberband

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Zooming with rubberband

    Hi,

    I want to zoom into my graphics view with the rubberband. I want also my view center to be the rubberband's shape center. In other words, I want fill my whole view with that rubberband shape(rectangle).

    I looked at the documentation and I saw that setting dragMode as RubberBandDrag could be adequate to perform the task above but, I couldn't be quite sure about scale function of QGraphicsView. Will it be better to implement my own rubberband? Any suggestions? For example what abour using fitInView()?


    Thanks
    Last edited by zgulser; 23rd February 2010 at 18:02.

Similar Threads

  1. Graphics view rubberband zooming
    By Veeru in forum Qt Programming
    Replies: 5
    Last Post: 25th February 2010, 11:14
  2. RubberBand Problem
    By zgulser in forum Qt Programming
    Replies: 10
    Last Post: 16th February 2009, 07:05
  3. Drawing a Rubberband
    By daviddoria in forum Qt Programming
    Replies: 9
    Last Post: 4th May 2008, 14:32
  4. QGV: ItemIgnoresTransformations and RubberBand
    By Vladimir in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2007, 14:38
  5. Rubberband zoom
    By sreedhar in forum Qt Programming
    Replies: 3
    Last Post: 12th September 2006, 11:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.