Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
22 June 2021
After a short presentation of a QThread without an event loop, this video will tell you about threads with an event loop. This allows handling events for objects in secondary threads, which is necessary in order to be able to call slots on these objects.
The video then presents two different ways to do this: creating both the thread and the worker at the same level, or encapsulating the thread into the worker.
You can find more information about our multithreading training here: https://training.kdab.com/portfolio/in-depth-multithreading-with-qt/
The code is available on:
https://github.com/KDABLabs/kdabtv/tree/master/Multithreading-with-Qt/ActiveObject
All Multithreading with Qt videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6jgr-Rpl3J4XDQYhmUnxb-g