int nfontId = QFontDatabase::addApplicationFont(":/ Sharp character Sharp Line Dream Black Jane V1.0.TTF");
qDebug()<<"fontId = "<< nfontId;//Equal to -1 failed to load
if(nfontId> =0)
{
QString msyh = QFontDatabase::applicationFontFamilies(nfontId).at(0);
qDebug() <<"msyh = " <<msyh;
QFont font(msyh);
QApplication::setFont(font);
}