PDA

View Full Version : QTableView Clicked and DoubleClicked not working properly ?



RameshNani
6th March 2017, 13:40
Hi All,

When i just clicked on row or select any row it should do some functionality, and if i double click on any row it should do different thing , but some times even for double click also it's doing clicked signal functionality, it's not doing double click Functionality, is there a way to handle row selction and double click functionalities ?

gvanvoor
5th July 2017, 14:28
I'm guessing you're using QWidget's mousePressEvent and mouseDoubleClickEvent. You should use the AbstractItemView's clicked and doubleClicked signals.