Unsolved on_TableWidget_doubleClicked(const QModelIndex &index);
-
Greetings,
I have a table widget in a tab, I used the on_doublClicked slot in the ui editor works great but how does one filter out the left button on the double click.
header file declaration.
void on_employeeTableWidget_doubleClicked(const QModelIndex &index);
void MainWindow::on_employeeTableWidget_doubleClicked(const QModelIndex &index) { // wish to process the left button only here... }
Thanks..
-
Hi,
"Filter out the left button" ? Why ? It's him that is usually used for double clicking, no ?
-
Because it fires whether you double click the right or left button. I wish to ignore the event if it is not the left button.
Thanks
-
In that case, shouldn't you rather use the activated signal ?