I would like to call a function after x seconds and another after y seconds etc.. The number of seconds to wait before calling the function is stored in a QTime
I thought launching a timer and when the value of this QTimer has the value of one of QTime, call the function, but I dont' know at all how to do ..
Here is my idea in "pseudo-code" :
QTime time1(0, 0, 10); // 00:00:10
QTime time2(0, 0, 15); // 00:00:15
// Init a QTimer
if (QTimer.value == time1.value)
function1();
if (QTimer.value == time2.value)
function2();
How I can do that ?
Thanks for your help