Results 1 to 2 of 2

Thread: How do I know which item I clicked in a QGraphicsView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How do I know which item I clicked in a QGraphicsView

    I have a QGraphicsView with a couple QGraphicsItems being displayed. Is there a signal or some function I can call to know when I clicked an item?
    I am looking for something that will return the item I have clicked or remember what the last item I have clicked is.
    My end goal is to have a button so that when I click the button it will tell me things about the QGraphicsItem that I have selected.
    Last edited by di_zou; 15th December 2009 at 20:45.

Similar Threads

  1. MDI display Item in QGraphicsView
    By wisconxing in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2008, 00:11
  2. How to know wich item is clicked QTreeWidget
    By ^NyAw^ in forum Qt Programming
    Replies: 13
    Last Post: 6th November 2007, 23:47
  3. QGraphicsView and item focus
    By Micawber in forum Qt Programming
    Replies: 3
    Last Post: 22nd June 2007, 20:36
  4. Getting item from QTableView when clicked on
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 11:58
  5. Replies: 17
    Last Post: 31st March 2006, 05:57

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.