wagmare
20th March 2009, 08:34
hi friends,
i gone through one good examlpe which use QProcess() and in that i have one doubt ...
i try all the assistant documents but cant find ... what is the difference between this two .. to get readyReadStandardError() from QProcess()
1.
QString path = process.readAllStandardError();
path = outputtextedit->setText(path);
2.
QByteArray newData = process.readAllStandardError();
QString text = outputTextEdit->toPlainText()
+ QString::fromLocal8Bit(newData);
outputTextEdit->setPlainText(text);
why we need to convert QString as like 2 nd one .... what will happen if i use 1 st condition ..?
i gone through one good examlpe which use QProcess() and in that i have one doubt ...
i try all the assistant documents but cant find ... what is the difference between this two .. to get readyReadStandardError() from QProcess()
1.
QString path = process.readAllStandardError();
path = outputtextedit->setText(path);
2.
QByteArray newData = process.readAllStandardError();
QString text = outputTextEdit->toPlainText()
+ QString::fromLocal8Bit(newData);
outputTextEdit->setPlainText(text);
why we need to convert QString as like 2 nd one .... what will happen if i use 1 st condition ..?