PDA

View Full Version : How do I switch QGraphicsItem insider QGraphicsGridLayout?



lni
10th January 2010, 09:41
Hi,

I have a QGraphicsGridLayout, say 3 x 3.

Now I would like to re-arange the content of the grid item, for instance:
item at [0, 0] and item at [1 1] will switch place.

How can I do so?

Thanks

wysota
10th January 2010, 19:51
Use QGraphicsGridLayout::addItem().