1 #include "qtimerthread.h"
3 QTimerThread::QTimerThread()
5 timer_.setInterval(1000);
6 timer_.setTimerType(Qt::PreciseTimer);
7 timer_.moveToThread(
this);
8 connect(&timer_, SIGNAL(timeout()),
this, SLOT(timer_func()), Qt::DirectConnection);
11 QTimerThread::~QTimerThread()
17 void QTimerThread::run()