Method MyThread::run() is blocking thread event loop. Use standard QThread::run() and create a method fired by QTimer with static_speed_yaw_data_->getTimeInterval() period.
Method MyThread::run() is blocking thread event loop. Use standard QThread::run() and create a method fired by QTimer with static_speed_yaw_data_->getTimeInterval() period.
You probably shouldn't call "MyThread" like that since it is obviously a QRunnable and not a QThread.
Or maybe better make it an actual thread, the while loop suggests that you want to control it, not hand over to some thread pool.
Cheers,
_
You were right!
I have no idea how that part slipped me.
After changing QRunnable to QThread everything worked (tested it today).
Thanks!
Bookmarks