Results 1 to 2 of 2

Thread: Changing QGraphcisView Geometry

  1. #1
    Join Date
    Dec 2016
    Posts
    37
    Qt products
    Qt5
    Platforms
    Windows

    Default Changing QGraphcisView Geometry

    I've got a QGraphicsView object that I am able to scale as needed.
    I've got another QGraphicsView object within a QWidget. This object won't scale even when I scale the widget that the QGraphicsView object is within.
    Is this setup not supposed to let you scale the QGraphicsView object? Or am I missing something?

    Thanks.

    t

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Changing QGraphcisView Geometry

    You will have to use layouts. Put the QGraphicsView in a QHBoxLayout (or any other layout), and put this layout on the QWidget.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Geometry of QWebElement
    By TeeT in forum Newbie
    Replies: 4
    Last Post: 17th April 2015, 15:48
  2. QSlider: changing the groove without changing the handle
    By Olivier Berten in forum Qt Programming
    Replies: 3
    Last Post: 30th April 2013, 10:02
  3. QGraphcisView issue with mouse cursor image
    By dpatel in forum Qt Programming
    Replies: 0
    Last Post: 20th July 2010, 07:28
  4. QGraphicsLayout::geometry()
    By isutruk in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 15:43
  5. Replies: 2
    Last Post: 10th August 2009, 09:45

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.