QByteArray messageData;
while (socket->bytesAvailable( )) {
QString qq = socket->readLine();
qq.remove(qq.size()-2, 2);
qint32 s = (qq).toInt();
QByteArray data = QByteArray::number(s, 16);
qDebug() << data;
messageData.append(s);
}