//设置本地字体,黑体简int fontId = QFontDatabase::addapplicationFont(QCoreApplication::applicationDirPath() + "/黑体简.TTC"); qDebug() << "fontId = "<< fontId; QString msyh = QFontDatabase::applicationFontFamilies(fontId).at(0); qDebug() <<"msyh = " <<msyh; QFont font(msyh); QApplication::setFont(font);
新闻热点
疑难解答