Cancel QTimer singleShot
Solved
General and Desktop
-
I would like to cancel singleshot method in trigger time
timer.singeShot(10000, this, &MyClass:mySlot);
how can I cancel that singleShot ?
-
@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()
. -