Before we start exploring how we can use Qt's thread support, we should understand the support Qt has for threads. Most of Qt's thread support is on the C++ side, but there is also support in QML.
In this section, we will learn about the following Qt thread models:
- Simple Threads
- Thread pools
- Qt Concurrent (run, map, filter, and reduce)
- QML WorkerScript
We will start with simple threading using QThreads.