十六进制,前面自动补0
QString str = QString(“%1”).arg(outChar&0xFF,2,16,QLatin1Char(‘0’));
int a=0001;
十进制,前面自动补0
QString str = QString(“%1”).arg(a,4,10,QLatin1Char(‘0’));
QString strPoint = QString("%1, %2").arg(currentPoint.x(),4,10,QLatin1Char(' ')).arg(currentPoint.y(),4,10,QLatin1Char(' '));