Qt4:タイマーを使う


Qt4:百の定石


  • ex. 5分ごとに仕事をする。
    timer = new QTimer( this );
    connect( timer, SIGNAL(timeout()), this, SLOT(timerDo()) );
    timer->start(300000); //Every 5 Minutes