Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Handle mouse event
I want to detect mouse event in my application run in backend.
If the user is working with another application in the meantime i want to detect events in my application.
Any guide or link?
AFAIK, you cannot do this using Qt. You'll have to rely on system calls (mouse hooks, etc.) for that.
Thanks for reply!
Could you please refer any link or example of mouse hooks to understand the whole concept..
Which operating system?
Linux (Ubuntu 12.04)
Sorry, I don't know the APIs on Linux. Hopefully, someone else can help.
I tried this:
After Find the QPoint point = QCursor::pos() after every second using Qtimer and match it with the last point.
Using this i am able to detect mouse position and find user idle or not.
*But mouse click is not working.