PDA

View Full Version : Changing QGraphcisView Geometry



tvj4218
22nd March 2017, 02:19
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

Santosh Reddy
22nd March 2017, 03:52
You will have to use layouts. Put the QGraphicsView in a QHBoxLayout (or any other layout), and put this layout on the QWidget.