0

Does QProcess::waitForReadyRead return when there is data in the process's stderr, or does it wait only on stdout? How can I wait for data on stderr without using signals and slots?

sashoalm
  • 75,001
  • 122
  • 434
  • 781

1 Answers1

2

QProcess::setReadChannel()

Will control whether your monitoring stderr or stdout, so if you call:

myProcess->setReadChannel( QProcess::StandardError );

then waitForReadyRead will only act on stderr.

See also: QProcess::setProcessChannelMode

Chris
  • 17,119
  • 5
  • 57
  • 60