0

I am doing an experiment with a Qt app and it would be extremely helpful to be able to differentiate clicks from the mouse left button vs the ones coming from the touchpad. For what I have read, there is no documentation about it.

On the other hand, I have read this SO question Tracking mouse coordinates in Qt

and I know that it's also possible to track mouse coords, in other elements but haven't found a way to do it on a qpushbutton.

Any help appreciated.

Community
  • 1
  • 1
Leonardo Lanchas
  • 1,616
  • 1
  • 15
  • 37
  • 1
    Why would you want to differentiate them? A mouse click is a mouse click, regardless of where it came from – SingerOfTheFall Dec 19 '16 at 13:57
  • Not really answering your question but related: you can [track special touchpad events](http://doc.qt.io/qt-5/qnativegestureevent.html#details). I don't know if it's possible to differentiate touchbad simple click from mouse click. – Jean-Emmanuel Dec 19 '16 at 14:06
  • I haven't tested it personnaly, but maybe you could have a look at [QTouchEvent](http://doc.qt.io/qt-5/qtouchevent.html#details). – dydil Dec 19 '16 at 14:10

0 Answers0