QTextCodec::setCodecForCStrings(QTextCodec::codecForName("GB18030"));
m_lbWeather->setText(QString("<font size=20>%1</font>& n b s p; <font size=20 color=blue>%2& d e g ; C</font>") .arg(m_weatherCity,m_weatherCT));
要setCodec.用法就像上面那個.& n b s p;是空格 & d e g ; C 是 °C