Cancel QTimer singleShot
Solved
General and Desktop
-
wrote on 13 Apr 2024, 16:14 last edited by
I would like to cancel singleshot method in trigger time
timer.singeShot(10000, this, &MyClass:mySlot);
how can I cancel that singleShot ?
-
I would like to cancel singleshot method in trigger time
timer.singeShot(10000, this, &MyClass:mySlot);
how can I cancel that singleShot ?
wrote on 13 Apr 2024, 16:42 last edited by JonB@Joe-von-Habsburg
I think you cannot with what you have since you have picked astatic
overload (did you realise that?). Instead use aQTimer
instance and usesetSingleShot()
, then you couldstop()
. -
@Joe-von-Habsburg
I think you cannot with what you have since you have picked astatic
overload (did you realise that?). Instead use aQTimer
instance and usesetSingleShot()
, then you couldstop()
.wrote on 13 Apr 2024, 17:01 last edited by@JonB thank you
-
2/3