Qt double click check left button mouse

Posted by Alex Ivasyuv on Stack Overflow See other posts from Stack Overflow or by Alex Ivasyuv
Published on 2010-04-17T20:01:29Z Indexed on 2010/04/17 20:03 UTC
Read the original article Hit count: 355

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about qt

Related posts about c++