QRunnable - how to use it, examples

May point to some code using QRunnable as an alternative to QtConcurrent: I cannot find any QRunnable example in Qtdoc.

Have you ever tried to use QRunnable AND QtConcurrent for the same application, and could you comment on the compared performance?

+3
source share
1 answer

QRunnableis an interface. Therefore, instead of searching for "a QRunnableexample", it would be better to look for (for example) "a QThreadPoolexample", for example:

http://doc.qt.io/qt-4.8/thread-basics.html#example-1-using-the-thread-pool

, QtConcurrent, - STL STL. QRunnable , .

QtConcurrent QThreadPool. , , . ... QtConcurrent (, MapReduce) parallelism, , , .

+6

All Articles