QGraphicsItem - automatically rearrange positions (space out)?
-
I am developing a tools which generates a bunch of QGraphicsItem derived class instances programmatically.
Those items are being added to an existing QGraphicsScene
Is there some QGraphicsView/QGraphicsScene method/call to update the positions of all the items (both existing and newly added) so that they do not overlap each other ?
-
I am developing a tools which generates a bunch of QGraphicsItem derived class instances programmatically.
Those items are being added to an existing QGraphicsScene
Is there some QGraphicsView/QGraphicsScene method/call to update the positions of all the items (both existing and newly added) so that they do not overlap each other ?
@nicholas_yue
Not so far as I know. There is no "Tile" or "Cascade". Just write it yourself.