Qt makes it easy to write multithreaded applications. Signals and slots can be used to safely communicate between threads in your application.
| Mandelbrot 範例 | The Mandelbrot example demonstrates multi-thread programming using Qt. It shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop. |
| 隊列自定義類型範例 | Demonstrates multi-thread programming using Qt |
| 信號量範例 | Demonstrates multi-thread programming using Qt |
| 等待條件範例 | Demonstrates multi-thread programming using Qt |
The QtConcurrent namespace includes a collection of classes and functions for straightforward concurrent programming.
These examples show how to apply the basic techniques of concurrent programming to simple problems.
| 圖像比例縮放範例 | Demonstrates how to asynchronously scale images. |
| 地圖範例 | 演示如何同步比例縮放圖像。 |
| QtConcurrent 進度對話框範例 | 演示如何監視活動進程的進度。 |
| QtConcurrent 單詞計數範例 | 演示如何使用 map-reduce (映射縮減) 算法 |
| 運行函數範例 | 演示如何並發運行標準函數。 |
Examples marked with an asterisk (*) are fully documented.