1. QTimer *timer = new QTimer( myObject );
connect( timer, SIGNAL(timeout()), myObject, SLOT(timerDone()) );
timer->start( 2000, TRUE ); // 2秒单触发定时器
QTimer *t = new QTimer( myObject );
connect( t, SIGNAL(timeout()), SLOT(processOneThing()) );
t->start( 2000, FALSE ); // 2秒单触发定时器
2.void QTimer::singleShot ( int msec, QObject * receiver, const char * member ) [静态]
QTimer::singleShot( 10*60*1000, &a, SLOT(quit()) );