I have 3 events defined as follows:
void mouseMoveEvent(QMouseEvent *eventMove);
void mousePressEvent(QMouseEvent *eventPress);
void mouseReleaseEvent(QMouseEvent *releaseEvent);
Now, let's say I want to do something when the mouse is clicked and moved until the mouse is released.
e.g. Give an output !
until the conditions described upper are true.
EDIT: I have tried to set a global variable let's say bool a
and make it true
in mousePressEvent(...)
, false
in mouseReleaseEvent(...)
, but when in mouseMoveEvent(...)
the a
is always true
, even when button is released.