void MainWindow::readData(){ QByteArray data = serial->readAll(); console->putData(data); qDebug() << QString(data);}
QString::compare(QString(data), "message"))== 0
C++ (Qt)qDebug() << "a";qDebug() << "b";