View Full Version : Move multi selected graphics items
tebessum
9th August 2007, 20:57
How can I move multiple selected QGraphicsItem ?
Thanks for your help ....
marcel
9th August 2007, 21:00
If they have the flags ItemIsMovable and ItemIsSelectable, then they should move by default( provided that isSelected() returns true ).
This has been tested: http://www.qtcentre.org/forum/f-qt-programming-2/t-qgraphicsview-moving-multiple-selection-6699.html.
UPADTE: you can also put them all in an item group and not worry bout setting the flags for each and every one of them
Regards
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.