PDA

View Full Version : Getting the Id of a double clicked item



thefatladysingsopera
30th April 2011, 13:52
Is there a way of knowing the name of a double clicked item i.e for listed items in QTable View.

rsilva
30th April 2011, 14:18
* 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.