qDebug() << "!" << event->timerId() << QThread::currentThreadId();
qDebug() << "!!";
#include <QApplication>#include <QDebug>//class test: public QObject{protected: void timerEvent(QTimerEvent *ev) { qDebug() << "!" << ev->timerId(); for (int i=0; i<1000000; i++) qApp->processEvents(); qDebug() << "!!" << ev->timerId(); }};//int main(int argc, char *argv[]){ QApplication app(argc, argv); test a; a.startTimer(5); return app.exec();}