Quote Originally Posted by SABROG View Post
QObject::startTimer() don't use QTimer or QBasicTimer:
Isn't that what I just said?

startTimer()->eventDispatcher->SetTimer() (winapi)

so QObject::startTimer more lightweight than QTimer or QBasicTimer and i don't understand why QBasicTimer used in "Wyggly" example. May be this just don't good example.
  • QObject::startTimer() is the lowest-level timer available in Qt.
  • QBasicTimer brings more convenience, but it's basically the same than using QObject::startTimer() but more convenient.
  • QTimer is a high-level timer class. Very easy and convenient to use. Hides the timer events from the application developer. Just create a timer object, connect signals and slots, start the timer and you're done.
  • The Wyggle example was chosen to demonstrate the usage of QBasicTimer. Isn't it nice that there is at least some example using QBasicTimer? Most of them use QTimer instead, just like recommended by QBasicTimer docs.