QGraphicsWidget sizing and expand direction in QGraphicsLinearLayout
-
I had a QGraphicsWidget with QGraphicsLinearLayout assigned to it. The layout contains many QGraphicsWidget items. I want to re-size each individual QGraphicWidget by dragging either its left edge or its right edge.
-When I drag the right edge, I want QGraphicsWidget expand its size to the right and shift other widgets (from the right side of current adjusting widget). This can be achieved easily because of the default behavior of QGraphicsLinearLayout.
-When I drag the left edge, I want QGraphicsWidget expand its size to the left and shift other widgets (from the left side of current adjusting widget).
-
AFAIK, no
Wouldn't using QSplitter and only one QGraphicsWidget with be simpler ?
-
No, my idea was to build your set of resizable widgets with QSplitter and then add that QSplitter to your scene