myrky
27th May 2010, 13:28
Hi,
I want to load a font from the resource using QFontDatabase but it don't work. Here the code that i use :
QFontDatabase fontDB;
fontDB.addApplicationFont(":/GraphicsView/fonts");
foreach(QString s, fontDB.families())
{
qDebug() << s;
}
Am i doing something wrong or it's impossible to load font from the resource ?
I want to load a font from the resource using QFontDatabase but it don't work. Here the code that i use :
QFontDatabase fontDB;
fontDB.addApplicationFont(":/GraphicsView/fonts");
foreach(QString s, fontDB.families())
{
qDebug() << s;
}
Am i doing something wrong or it's impossible to load font from the resource ?