Move mouse cursor following pattern
-
wrote on 2 Oct 2019, 07:50 last edited by
Hi,
I would like to know if there is any way to move the mouse cursor following a pattern (a line, circle, triangle, parabolic, ...) with QCursor.
Alternatively, if not possible is it possible to use QCursor::setPos with some kind of timer? Going from point A to B in n milisec.Thanks,
D- -
Hi,
I would like to know if there is any way to move the mouse cursor following a pattern (a line, circle, triangle, parabolic, ...) with QCursor.
Alternatively, if not possible is it possible to use QCursor::setPos with some kind of timer? Going from point A to B in n milisec.Thanks,
D- -
wrote on 2 Oct 2019, 08:10 last edited by
Thank you, my only issue with that is that the move is instantaneous, I'd like to have the control of the speed of the move.
-
Thank you, my only issue with that is that the move is instantaneous, I'd like to have the control of the speed of the move.
-
Thank you, my only issue with that is that the move is instantaneous, I'd like to have the control of the speed of the move.
@Doriana Then don't move the cursor to its end-position, move it in several step from current to end-position. You can use https://doc.qt.io/qt-5/animation.html for that.
-
@Doriana Then don't move the cursor to its end-position, move it in several step from current to end-position. You can use https://doc.qt.io/qt-5/animation.html for that.
1/6