Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロセスのstderrにデータがある場合に戻りますかQProcess::waitForReadyRead、それともstdoutでのみ待機しますか?信号とスロットを使用せずにstderrでデータを待機するにはどうすればよいですか?
QProcess::waitForReadyRead
QProcess :: setReadChannel()
監視stderrまたはstdoutのどちらを制御するので、次のように呼び出します。
myProcess->setReadChannel( QProcess::StandardError );
その後waitForReadyRead、stderrにのみ作用します。
waitForReadyRead
参照:QProcess :: setProcessChannelMode