PDA

View Full Version : doubleclick with tableview reacts only once



qt_gotcha
13th July 2010, 06:57
I have a QtableView (called fileView) linked to a QFileSystemModel. The double click event is linked to a function that selects the file and does something with it

connect(fileView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(selectFiles(QModelIndex)));

the first time I doubleclick this works fine. Then the second time the double click nothing happens! When debugging it seems the signal is not transmitted, at least I do not end up in the function selectFiles
Do I have to reset the nsignal or something?

trhanks

qt_gotcha
13th July 2010, 17:17
sorry, my own fault, messed up the code