Results 1 to 1 of 1

Thread: QGraphicsView resize and zoom

  1. #1
    Join Date
    Apr 2011
    Posts
    3
    Thanked 1 Time in 1 Post

    Default QGraphicsView resize and zoom

    Hi to all!

    I am having an issue with a graphicsview resize and zoom!

    using ui.graphicsView->resize(event->size()) i can resize my view when i resize the window,
    and the scene resizes ok.

    The problems start with zooming!
    when i zoom-in or out, although everything seems to zoom ok,
    the scene/view (i am not sure which one) is getting out of center!
    (zooming in transforms the scene/view a bit to the left, and zooming out to the left)

    I have tried some things using resizeAncors and centerOn
    but i had no luck!

    Also, scroll bars are not appearing...

    Any one has any idea?
    Thank you in advance!

  2. The following user says thank you to giostau for this useful post:


Similar Threads

  1. Qgraphicsview zoom issue
    By tarunrajsingh in forum Qt Programming
    Replies: 6
    Last Post: 23rd April 2013, 11:28
  2. Replies: 1
    Last Post: 9th October 2012, 12:32
  3. Replies: 3
    Last Post: 11th December 2011, 10:09
  4. Replies: 7
    Last Post: 1st December 2011, 16:24
  5. missing image with zoom (QGraphicsView)
    By avis_phoenix in forum Qt Programming
    Replies: 7
    Last Post: 18th March 2009, 13:09

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.