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
Post a Comment