QT/QML添加,设置全局字体

//添加需要的字体
int fontId = QFontDatabase::addApplicationFont(":/language/mbitmaproundhk-light.otf");
QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId);
qDebug()<<"fontfamilies:"<

 

你可能感兴趣的:(QT,QML)