Qt Concurrent Reference Documentation

Optimize includes

Changes to Qt Concurrent

QtConcurrent::run()

Qt Concurrent

Using the Module

Building with CMake

Building with qmake

Examples

Module Evolution

Licenses

Qt Concurrent module topics

Concurrent Filter and Filter-Reduce

Optimize includes

Concurrent Filter

Concurrent Filtered and Continuations

Concurrent Filter-Reduce

Additional API Features

Using Iterators instead of Sequence

Using Member Functions

Using Function Objects

Using Lambda Expressions

Wrapping Functions that Take Multiple Arguments

Concurrent Map and Map-Reduce

Optimize includes

Concurrent Map

Concurrent Mapped and Continuations

Concurrent Map-Reduce

Additional API Features

Using Iterators instead of Sequence

Blocking Variants

Using Member Functions

Using Function Objects

Using Lambda Expressions

Wrapping Functions that Take Multiple Arguments

Concurrent Run

Optimize includes

Concurrent Run (basic mode)

Running a Function in a Separate Thread

Passing Arguments to the Function

Returning Values from the Function

Additional API Features

Using Member Functions

Using Lambda Functions

Concurrent Run With Promise

The mandatory QPromise argument

Reporting results

Suspending and canceling the execution

Progress reporting

Invoking functions with overloaded operator()()

Concurrent Task

Optimize includes

Fluent interface

Running a task in a separate thread

Passing arguments to the task

Returning values from the task

Additional API features

Using different types of callable objects

Using custom thread pool

Setting priority for a task

Image Scaling

Running the Example

Prime Counter

Running the Example

Setting up the connections

Starting the concurrent operation

Word Count

Running the Example

Comparing the operations

Qt Concurrent Examples

Qt Concurrent C++ Classes