c++ - QTimer - Repetitive Timer -


i'm trying have qtimer object count in intervals, continuously call function. followed example , have set intervals doesn't appear start counting ever again.

this piece of code i'm working with

qtimer *timer = new qtimer(this); timer->setinterval(1000); connect(timer, signal(timeout()), this, slot(myfunction())); timer->start(); 

is main loop stil running? object reference "this" stil existent? check if timer set single shot?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -