The QTimer object must be created in InfoThread::run() without a parent (preferably on the stack since QThread::exec() blocks) and the connection must be forced as direct
because QThread itself lives in different thread than what's being executed in QThread::run().Qt Code:
connect( &timer, SIGNAL( timeout() ), this, SLOT( update() ), Qt::DirectConnection );To copy to clipboard, switch view to plain text mode
Bookmarks