Results 1 to 2 of 2

Thread: Move multi selected graphics items

  1. #1
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Move multi selected graphics items

    How can I move multiple selected QGraphicsItem ?

    Thanks for your help ....

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Move multi selected graphics items

    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-p...tion-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
    Last edited by marcel; 9th August 2007 at 21:10.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.