How to call QTimer::single shot from a static functiom
Unsolved
General and Desktop
-
wrote on 13 Sept 2018, 23:31 last edited by
How to call QTimer::single shot from a static functiom
-
How to call QTimer::single shot from a static functiom
@Qt-Enthusiast said in How to call QTimer::single shot from a static functiom:
How to call QTimer::single shot from a static functiom
The same way you call any other function from a static function.
-
wrote on 14 Sept 2018, 04:41 last edited by
can some one please code
-
can some one please code
@Qt-Enthusiast said in How to call QTimer::single shot from a static functiom:
can some one please code
First, show us how you normally write a static function.
-
wrote on 14 Sept 2018, 07:15 last edited by VRonin
void staticFunction() { QTimer::singleShot(0,[]()->void{qDebug("Hello World!");}); }
3/5