Hello anda_skoa.
Thanks for your reply and help.
'readyReadStandardOutput'. No help.
'readyReadStandardError'. Does help.
I can get the '%' from this.
Regards
QObject::connect(process,
SIGNAL(started
()),
this,
SLOT(processStarted
()));
QObject::connect(process,
SIGNAL(readyReadStandardOutput
()),
this,
SLOT(readyReadStandardOutput
()));
QObject::connect(process,
SIGNAL(readyReadStandardError
()),
this,
SLOT(readyReadStandardError
()));
QObject::connect(process,
SIGNAL(finished
(int)),
this,
SLOT(processFinished
()));
process = new QProcess(this);
QObject::connect(process, SIGNAL(started()), this, SLOT(processStarted()));
QObject::connect(process, SIGNAL(readyReadStandardOutput()),this,SLOT(readyReadStandardOutput()));
QObject::connect(process, SIGNAL(readyReadStandardError()),this,SLOT(readyReadStandardError()));
QObject::connect(process, SIGNAL(finished(int)), this, SLOT(processFinished()));
To copy to clipboard, switch view to plain text mode
void MainWindow::readyReadStandardError() //slot
{
errorString.append(process->readAllStandardError());
qDebug() << "readyReadStandardError - " << errorString;
}
void MainWindow::readyReadStandardError() //slot
{
QString errorString;
errorString.append(process->readAllStandardError());
qDebug() << "readyReadStandardError - " << errorString;
}
To copy to clipboard, switch view to plain text mode
SLOT 'readyReadStandardError' gives:-
readyReadStandardError - " 0%"
readyReadStandardError - "\r \r 0% - myData.img"
readyReadStandardError - "\r \r 1% - myData.img"
readyReadStandardError - "\r \r 2% - myData.img"
readyReadStandardError - "\r \r 3% - myData.img"
...
...
readyReadStandardError - " 0%"
readyReadStandardError - "\r \r 0% - myData.img"
readyReadStandardError - "\r \r 1% - myData.img"
readyReadStandardError - "\r \r 2% - myData.img"
readyReadStandardError - "\r \r 3% - myData.img"
...
...
To copy to clipboard, switch view to plain text mode
Bookmarks