Creating multithreaded applications with Qt
summary
Explains when each Qt threading tool actually helps: subclassing QThread is rarely ideal, never move the QThread object to another thread because object affinity breaks signals/cleanup; use QMutexLocker for exception-safe locking and avoid read/write lockers unless benchmarked; reuse threads because creating QThread is expensive so QThreadPool / QRunnable wins for many short tasks (web‑server, queued DB jobs); use QtConcurrent mapped/reduced/filter with a QFutureWatcher for easy parallel transforms (mapped example ran 20 items on an 8‑core machine).
AI-written summary · about
chapters (9)
- 0:00Introduction and motivation
- 10:45Threading tools in Qt
- 16:13Subclassing QThread
- 23:38Worker threads with moveToThread
- 26:14Thread pools for small tasks
- 30:11Qt Concurrent and futures
- 32:17Map reduce and filter operations
- 48:05Recommendations and summary
- 48:49Q&A session
related talks
58mMultithreading with Qt
48mAdvanced Qt - A Deep Dive 3/6 Multithreading Part1
25mAdvanced Qt - A Deep Dive 4/6 Multithreading Part 2
01h 02mDevelopment of Multi-threaded applications
20mHow to push the most performance possible out of Qt applications
51mDevelopment of Multi-threaded applications
47m“Multithreading is the answer. What is the question? (part 1 of 2)”
01h 28mAn Introduction to Multithreading in C++20
