Qt example how make multi-thread console app. Use cmake build system.
About QThread see
See also submodule-like example
See also threads
https://stackoverflow.com/questions/23164492/how-can-i-detect-if-there-is-input-waiting-on-stdin-on-windows/23164552#23164552
https://stackoverflow.com/questions/36861177/how-to-get-qiodevice-like-signals-for-console-input-stdin
https://stackoverflow.com/questions/37880061/qt-console-press-enter-to-exit?noredirect=1&lq=1
https://stackoverflow.com/questions/6878507/using-qsocketnotifier-to-select-on-a-char-device/7389622#7389622