Results 1 to 4 of 4

Thread: QGraphicsScene/QGraphicsView is selecting only one item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QGraphicsScene/QGraphicsView is selecting only one item

    Quote Originally Posted by joyer83 View Post
    I would rather show the selection visually in the scene than using qDebug(). It might be easier that way to see what really happens.
    Modify your item's paint method to use the isSelected() setting to determine, for example, the outline color.

  2. #2
    Join Date
    Feb 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsScene/QGraphicsView is selecting only one item

    The selection is also visible, and it stays on the first item I clicked. It doesn't also depend on the stack order - whichever item I click first, it stays selected all the time.

Similar Threads

  1. QGraphicsView, QGraphicsScene item coordinates in scene
    By harakiri in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2010, 10:02
  2. Selecting an item from QListWidget
    By chandru@080 in forum Qt Programming
    Replies: 1
    Last Post: 18th November 2010, 06:30
  3. Replies: 0
    Last Post: 12th April 2010, 12:22
  4. selecting a specific QtreeList item
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2007, 13:45
  5. QListWidget and selecting an item
    By invictus in forum Newbie
    Replies: 4
    Last Post: 19th June 2007, 11:59

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.