Hello!
I am trying to dissect a program and got stuck with one function:
Qt Code:
void SerialPortHandler::sendTrackPause() { // qDebug() << "sendTrackPause"; QByteArray byteArr; out << ActionType::Track << TrackType::Pause << '\n'; serial->write(byteArr); }To copy to clipboard, switch view to plain text mode
serial is an object of QSerialPort.
This function clearly pauses a player.
But what's going on under the hood?
For what sake do we need QByteArray and QDataStream?
Bookmarks