qextserialport und readLine() langsam
Verfasst: 24. Juni 2013 11:07
Code: Alles auswählen
void Dialog::onReadyRead()
{
if (port->canReadLine()) {
//QString recvData=(QString::fromLatin1(port->readAll())); //works fast, but I want to read lines (lf)
QString recvData=(QString::fromLatin1(port->readLine())); //works, but very slow
ui->recvEdit->insertPlainText(recvData); //Data from uC with LF
}
}
readAll() dagegenen wird schnell ausgeführt.
Ideen?