Hi,

I wrote an appliaction for Android Debug Bridge (adb) to backup app data from an android device. But QProcess doesn't emit readRead signal, although adb gives an output:

class.h:
Qt Code:
  1. QProcess *process;
To copy to clipboard, switch view to plain text mode 

class.cpp:
Qt Code:
  1. process = new QProcess(this);
  2. connect(process, SIGNAL(readyRead()), this, SLOT(readyRead()));
  3. connect(process, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(finished(int, QProcess::ExitStatus)));
  4.  
  5. process->start("adb", QStringList() << "blah", QProcess::ReadOnly);
To copy to clipboard, switch view to plain text mode 

(...)

Qt Code:
  1. void Class::readyRead() {
  2. qDebug() << "Class::readyRead()";
  3. }
To copy to clipboard, switch view to plain text mode 

In terminal the message is coming, than i confirm it on the device and than it's done. In QProcess the readRead signal is emitted after confirming on device! Why?

Thanks!

P.S.

Qt Code:
  1. connect(process, SIGNAL(readyReadStandardOutput), this, SLOT(readyRead()));
To copy to clipboard, switch view to plain text mode 

or

Qt Code:
  1. process->start("adb", QStringList() << "blah", QProcess::ReadOnly | QIODevice::Text | QIODevice::Unbuffered);
To copy to clipboard, switch view to plain text mode 

doesn't work too!