C++ (Qt)void Some::onReadyRead(){ while(serialPort->canReadLine()) { const auto &line = serialPort->readLine(); }}