QThread provide two approaches to concurrency. We discuss how to create and communicate with processes and threads, as well as techniques for monitoring and debugging them.
QProcess is a very convenient (and cross-platform) class for starting and controlling other processes. It is derived from
QObject and takes full advantage of signals and slots to make it easier to “hook up” with other Qt classes.
Example 12.1. src/logtail/logtail.h ...