QByteArray buf = tcpClientList.at(i)->readAll(); QString ret; for (int i = 0; i < buf.count(); ++i) { ret.append(tr("0x%1,").arg((quint8)buf.at(i), 2, 16, QLatin1Char('0')).toUpper()); }
QByteArray buf = tcpClientList.at(i)->readAll(); QString ret; for (int i = 0; i < buf.count(); ++i) { ret.append(tr("0x%1,").arg((quint8)buf.at(i), 2, 16, QLatin1Char('0')).toUpper()); }