Results 1 to 2 of 2

Thread: Getting the Id of a double clicked item

  1. #1
    Join Date
    Apr 2011
    Posts
    67
    Thanks
    22
    Thanked 5 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Getting the Id of a double clicked item

    Is there a way of knowing the name of a double clicked item i.e for listed items in QTable View.

  2. #2
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Getting the Id of a double clicked item

    * You can set a eventFilter in the table item and check the double-click event. (subclassing the item, recommended)
    * You can set a eventFilter in the main window and get the window at the mouse point. (not recommended)

    When you have the QWidget of it, it's simple, you can do everything like calling objectName() or casting it to the item class to get some data.

  3. The following user says thank you to rsilva for this useful post:

    thefatladysingsopera (30th April 2011)

Similar Threads

  1. Replies: 1
    Last Post: 16th December 2009, 03:48
  2. Replies: 12
    Last Post: 24th July 2009, 11:38
  3. getting clicked item from listview
    By addu in forum Qt Programming
    Replies: 6
    Last Post: 14th May 2009, 11:33
  4. Replies: 1
    Last Post: 17th July 2008, 15:42
  5. Getting item from QTableView when clicked on
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 12:58

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.