For some reason loading DejaVuSansMono works, but using it doesn't?
if (QFontDatabase::addApplicationFont(":/fonts/DejaVuSansMono.ttf") == -1)
return -1;
QFont font{"DejaVuSansMono"};
font.setPointSize(10);
font.setStyleHint(QFont::Monospace);
app.setFont(font);
Now the [docs] say that one should not use setFont together with stylesheets, however it also doesn't work if no stylesheet whatsoever is applied...
For some reason loading
DejaVuSansMonoworks, but using it doesn't?Now the [docs] say that one should not use
setFonttogether with stylesheets, however it also doesn't work if no stylesheet whatsoever is applied...