Have a QProcess which gets a command output from my Ubuntu system. I have a pushbutton which executes this QProcess and does the work perfectly and i see the output in Application Window.. But i have a Text Edit in front of this Pushbutton where i need the output of Qprocess to be pasted. But this is not happening. I am doing a ReadallStandard Output which converts to QByteArray form. I guess this is the problem as its not being converted to string format.How do i get the QbyteArray to String format???
Here is the code i am using.Let me know what is wrong.
Qt Code:
result=command.toAscii(); ui->textEdit->setText(command); }To copy to clipboard, switch view to plain text mode
Bookmarks