hi to all,
I have a problem ....
How to add two QGraphicsItemGroup .
Thanks
Printable View
hi to all,
I have a problem ....
How to add two QGraphicsItemGroup .
Thanks
What do you mean? How to add two QGraphicsItemGroup what?
Add, as in A + B = {A, B} probably. :-)
There are two approaches. Either you just add both QGraphicsItemGroup items to a new group, or move all children of one group to the other, then delete the empty group. So:
Code:
QList<QGraphicsItem *> groups; groups << group1; groups << group2; // Add both groups to one parent group
...or: