Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // corrected version
- timer = new QTimer();
- timer->setInterval(1000);
- connect(timer, SIGNAL(timeout()), SLOT(tick()));
- timer->start();
- thread = new QThread(this);
- timer->moveToThread(thread);
- thread->start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement