...QTimer timer;...connect(&timer, SIGNAL(timeout()), this, SLOT(timerSlot()));...timer.start(1000/25);