Results 1 to 5 of 5

Thread: QGraphicsView and QGraphicsScene geometry

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    63
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QGraphicsView and QGraphicsScene geometry

    Hello.

    I need some tips from my fellow programmers. I am working with QGraphicsView and QGraphicsScene as the title implies and what I need some tips with is how to size/scale QGraphicsScene in proportion to the view.

    What I have now is a view widget that expands as the window expands and fixed size to the scene. But what I want is the same behavior for the scene as a widget has when it expands with the mainwindow. And I am not sure how to do this in a effective way. I am thinking about scaling but do not know if there are better ways.

    I have attached a picture to try and clarify what I want. If you look at the picture, I want the items in the scene have the same proportions when I maximize the window.
    Attached Images Attached Images

Similar Threads

  1. QGraphicsScene & QGraphicsView help please
    By munna in forum Qt Programming
    Replies: 6
    Last Post: 13th February 2017, 12:30
  2. QGraphicsView and QGraphicsScene
    By Molier in forum Qt Programming
    Replies: 11
    Last Post: 28th November 2010, 01:23
  3. QGraphicsView and QGraphicsScene
    By alisami in forum Qt Programming
    Replies: 8
    Last Post: 4th December 2008, 10:10
  4. QGraphicsScene and QGraphicsView
    By sabeesh in forum Qt Programming
    Replies: 7
    Last Post: 1st August 2007, 06:59
  5. QGraphicsScene and QGraphicsView
    By rossd in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2007, 14:43

Tags for this Thread

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.