Line 23 should be :
Qt Code:
  1. time = time->addMSecs(1000);
To copy to clipboard, switch view to plain text mode 
Carefully read the description of the method QTime::addMSecs