Search code examples
qttimerqt4qt4.6

Timer in QT 4.6 ver


IS there any possible substitute of Qtimer? that maybe less developed that Qtimer thats found in 4.7 and above versions, I have QT4.6.3. from which I cannot deviate/move forward from so I wanted to know timers that would be 4.6 qt compatible?


Solution

  • QTimer was available even in Qt 3.x.

    However if you need something more simple you can use QObject::startTimer() for your object and reimplement the QObject::timerEvent() event handler in your class (which must inherit QObject).

    Another alternative is to use QBasicTimer.

    For more info see (for Qt 4.6): http://doc.qt.digia.com/4.6/timers.html