Writing multithreaded applications

I bet multithread or threading isn't unfamiliar to you. Using other threads saves the GUI application from freezing. If the application runs on a single thread, it'll get stuck if there it's a synchronous time-consuming operation. Multiple threads make application running much smoother. Although most of the Qt Network APIs are nonblocking, it is not that difficult to practice on it.

Qt provides a QThread class to implement threading on all supported platforms. In other words, we don't need to write platform-specific code utilizing POSIX Threads or a Win32 API. Instead, QThread provides a platform-independent way to manage threads. A QThread object manages a thread within the program, which begins executing in ...

Get Qt 5 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.