置頂
QT QProcess 即時輸出 Stdout
我現在想用QT開一個Mainwindows呼叫一個Dialog
然後在Dialog下按一個按鈕去執行一個外部程式
之後可以把程式的stdout輸出到 plainTextEdit
試了很多方法沒有沒辦法
例如 readyRead(), readyReadStandardOutput(), readLine()
甚至用QTimer去讀都沒有用
他都一定要等到程式結束才會發出 readyRead()
readyReadStandardOutput() 訊號
請問各位大大應該要怎麼即時顯示(或是得到即時字串)
會員登入
(先登入會員才能回覆留言喔!)
