How to check if mouse button is pressed anywhere on screen , even outside of my mainwindow?
-
wrote on 8 Sept 2020, 19:23 last edited by
Is it possible to detect mouse buttons pressed inside and outside of my application window in Qt, i guess there is a way to detect mouse clicks inside my application window , but what about detecting clicks inside+outside of main window ?
-
Is it possible to detect mouse buttons pressed inside and outside of my application window in Qt, i guess there is a way to detect mouse clicks inside my application window , but what about detecting clicks inside+outside of main window ?
@learnist
Not directly with Qt.
The only thing which comes close to it is to create a transparent window spanning widget and dont accept the mouse event in the handler. -
@learnist
Not directly with Qt.
The only thing which comes close to it is to create a transparent window spanning widget and dont accept the mouse event in the handler.wrote on 8 Sept 2020, 19:29 last edited by@raven-worx Thanks for the answer
1/3