using QTextStream to read stdin in a non-blocking fashion

后端 未结 2 1081
日久生厌
日久生厌 2021-01-04 21:37

Using Qt, I\'m attempting to read the contents of the stdin stream in a non-blocking fashion. I\'m using the QSocketNotifier to alert me when the socket has recieved some ne

2条回答
  •  伪装坚强ぢ
    2021-01-04 21:42

    I've found and example in other answer that fits almost to this question and with complete and simple code:

    https://stackoverflow.com/a/7389622/721929

    I've used it to implement a QT console based app with a textual menu to choose on user selection.

提交回复
热议问题