PDA

View Full Version : QGraphicsLayout and QGraphicsWidget question



lni
7th October 2013, 20:08
Hi,

I have a root QGraphicsWidget with a QGraphicsGirdLayout, managing 4 layout items, as shown in the attachment.

One of the layout item (bottom right item) is another QGraphicsWidget with its own QGraphicsGirdLayout. Now I need to resize one of its items (marked with "Resizable QGraphicsWidget in the attachment) by using resize().

How do I let parent layout to automatically adjust its size to fit the child size? I call parent->adjustSize, but it doesn't work.

Thanks.