QString str;if (outChar == 0xFF) { str = QString("%1").arg("fail");} else { str = QString("%1").arg(outChar, 2, ....)}