tonnot
7th October 2010, 17:39
The QT doc says :
Unlike QTimer, QBasicTimer doesn't inherit from QObject....
This makes QBasicTimer a more lightweight alternative to QTimer.
Any link to lightweight QT literature or articles ?
The code for Wiggly Example is :
void AnalogClock::timerEvent(QTimerEvent *event)
{
if (event->timerId() == timer.timerId()) {
++step;
update();
} else {
QWidget::timerEvent(event);
}
}
And my question is who more can call my timerEvent ? Can I delete the timerId() check ?
Unlike QTimer, QBasicTimer doesn't inherit from QObject....
This makes QBasicTimer a more lightweight alternative to QTimer.
Any link to lightweight QT literature or articles ?
The code for Wiggly Example is :
void AnalogClock::timerEvent(QTimerEvent *event)
{
if (event->timerId() == timer.timerId()) {
++step;
update();
} else {
QWidget::timerEvent(event);
}
}
And my question is who more can call my timerEvent ? Can I delete the timerId() check ?