Results 1 to 3 of 3

Thread: mulitiple selection in graphics scene pressing control key simultaneously mouse left

  1. #1
    Join Date
    Nov 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default mulitiple selection in graphics scene pressing control key simultaneously mouse left

    I created some rectangular items and added them to the grid in graphics scene.Now i want to select multiple items using control key and as I am totally new to Qt i am unable to do so.please someone help me out in this regard.

    thanking you in advance

  2. #2
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: mulitiple selection in graphics scene pressing control key simultaneously mouse l

    You just need to set some flags: QGraphicsItem::setFlags()

  3. #3
    Join Date
    Nov 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: mulitiple selection in graphics scene pressing control key simultaneously mouse l

    thanks a lot but could you please tell me the code

Similar Threads

  1. Phonon control or selection of Left or right channels or both
    By windsword in forum Qt-based Software
    Replies: 0
    Last Post: 23rd September 2010, 11:48
  2. Replies: 4
    Last Post: 29th August 2010, 18:16
  3. graphics scene
    By dognzhe in forum Qt Programming
    Replies: 3
    Last Post: 3rd June 2009, 08:55
  4. Buttons in Graphics Scene
    By aamer4yu in forum Qt Programming
    Replies: 3
    Last Post: 28th November 2007, 19:24
  5. QTreeWidget and Graphics scene
    By aamer4yu in forum Qt Programming
    Replies: 7
    Last Post: 21st December 2006, 17:24

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.