I am using a function called InstallEventHandler which takes the name of the event and install handler to it
installEventHandler("QWidget", "QMouseEvent","mouse_event")
in which the QWidget is the type the the event handler is installed to, the QMouseEvent is the event that causes the handler to be called, and the mouse_event is the handler.
I want the function to be triggered when mouse is pressed only but I am encountered with a problem that the QMouseEvent is generated with mouse moves and releases too not only QMousePressEvent. Which make the fuction gets called thousands of times and misses my code.
I am trying since days to find a way and searching all the available methods but non is working.
Bookmarks