I am creating a timer, so I can call a function periodically, I use the function connect to make the connection between the timer and the function. The code follows:
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(DevicesScanner::scanUpdate()));
timer->start(1000);
My question is: How do I make this connection unique, so the timer is not created multiple times?