Results 1 to 2 of 2

Thread: Adjustable QGraphicsView?

  1. #1
    Join Date
    Sep 2009
    Location
    Surrey, BC, Canada
    Posts
    110
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Adjustable QGraphicsView?

    I'd love to realize something like:

    when loading an image, no matter what size it is, I'm able to load it into a QGraphicsView, which is not of a fixed size.
    Namely, I hope in my QMainWindow or QFrame or QDialog, this QGraphicsView is not of a fixed size, but a flexible and adjustable size, which will automatically adjust its size due to the loading image size.

    Is it possible to realize this?

    Best Regards
    JIA
    Welcome to Vision Open
    http://www.visionopen.com

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Adjustable QGraphicsView?

    No matter how large you make the graphics view, if the image size is larger it wont fit in it.
    You can have a look at QGraphicsView::fitInView if it suits you

Similar Threads

  1. QGraphicsView
    By hgedek in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2007, 09:16
  2. QGraphicsView
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2007, 08:00
  3. QGraphicsView
    By Shawn in forum Qt Programming
    Replies: 11
    Last Post: 4th June 2007, 14:31
  4. help with QGraphicsView
    By Erlendhg in forum Qt Programming
    Replies: 6
    Last Post: 22nd April 2007, 20:26
  5. Regarding QGraphicsView
    By kiranraj in forum Qt Programming
    Replies: 4
    Last Post: 22nd December 2006, 04:59

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.