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
() outputTextEdit->setPlainText(text);
1.
QString path = process.readAllStandardError();
path = outputtextedit->setText(path);
2.
QByteArray newData = process.readAllStandardError();
QString text = outputTextEdit->toPlainText()
+ QString::fromLocal8Bit(newData);
outputTextEdit->setPlainText(text);
To copy to clipboard, switch view to plain text mode
why we need to convert QString as like 2 nd one .... what will happen if i use 1 st condition ..?
Bookmarks