делаю так
pr->write("LOL\n");
//pr->closeWriteChannel();
if (!pr->waitForReadyRead(3000))
return;
QByteArray ba = pr->readAll();
ui->textEdit->setText( ba );
делаю так
pr->write("LOL\n");
//pr->closeWriteChannel();
if (!pr->waitForReadyRead(3000))
return;
QByteArray ba = pr->readAll();
ui->textEdit->setText( ba );