Qt Code:
  1. void MainWindow::updateETLabel(){
  2. QString text = QTime::currentTime().toString("hh:mm:ss");
  3. setETLabelText(text);
  4. }
  5.  
  6. //MainWindow constructor:
  7. ETTimer = new QTimer(this);
  8. connect(ETTimer,SIGNAL(timeout()),this,SLOT(updateETLabel()));
  9.  
  10. //StartButton:
  11. ETTimer->start(1000);
To copy to clipboard, switch view to plain text mode 

the code above not works of course, because "QTime::currentTime().toString("hh:mm:ss");" only returns the current time...

I wanna make a timer that starts from 00:00:00 and increase each second. But I dont know how to do it in QT. Please I really need your help!