I can't get time adding functions to work. I'm using Qt4. Here is the code snippet, which produces two identical times instead of 100s different.
void main()
{
QTextStream out (stdout);
QTime t = QTime::currentTime();
out << t.toString("hh:mm:ss") << " -> ";
t.addSecs(100);
out << t.toString("hh:mm:ss");
}