C++ (Qt)QString QString::number ( double n, char format = 'g', int precision = 6 ) [static]
C++ (Qt)QString QString::arg ( double a, int fieldWidth = 0, char format = 'g', int precision = -1, const QChar & fillChar = QLatin1Char( ' ' ) ) const
serialNumber = QString("%1.%2.%3.%4.%5.%6") .arg(received_cmd[5], 2, 'f', 0, '0') .arg(received_cmd[6], 2, 'f', 0, '0') .arg(received_cmd[7], 2, 'f', 0, '0') .arg(received_cmd[8], 2, 'f', 0, '0') .arg(received_cmd[9], 2, 'f', 0, '0') .arg(received_cmd[10], 2, 'f', 0, '0');
serialNumber = QString("%1.%2.%3.%4.%5.%6") .arg((int)(received_cmd[5]), 2, 16) .arg((int)(received_cmd[6]), 2, 16) .arg((int)(received_cmd[7]), 2, 16) .arg((int)(received_cmd[8]), 2, 16) .arg((int)(received_cmd[9]), 2, 16) .arg((int)(received_cmd[10]), 2, 16);
serialNumber = QString("%01.%02.%3.%4.%5.%6") .arg(received_cmd[5], 2, 16, QLatin1Char('0')) .arg(received_cmd[6], 2, 16, QLatin1Char('0')) .arg(received_cmd[7], 2, 16, QLatin1Char('0')) .arg(received_cmd[8], 2, 16, QLatin1Char('0')) .arg(received_cmd[9], 2, 16, QLatin1Char('0')) .arg(received_cmd[10], 2, 16, QLatin1Char('0'));