Qt double click check left button mouse
- by Alex Ivasyuv
I need to run slot only on doubleClick with left button mouse, instead of both.
connect(this -> myComponent, SIGNAL (doubleClicked (const QModelIndex & )), this,
SLOT (performSomeAction(const QModelIndex & )));
With this event, double click works in both cases, but needed only with left button click.
How I can do it?
this - myComponent = QTableView