QString 输出 QString strTempUnit = "Centigrade"; qDebug("temp unit : %s", strTempUnit.toLocal8Bit().data());