Unsolved 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.
-
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.
-
void staticFunction() { QTimer::singleShot(0,[]()->void{qDebug("Hello World!");}); }