Hi,
I add mylabels to form programmatically.
Now I set custom font to these labels as follow:
1.
orQFont font("MyFont001 ", 30, QFont::Bold);
myLabel->setFont(font);
2.
Both can not change to myLabels' font to MyFont001myLabel->setStyleSheet(@"font: 9pt "MyFont001 ";");
So I add a label at Qt Designer and change QLabel's font to my custom font. It's also same result.
How can I set custom font (ttf font) to qlabel programmatically?
Thanks.
Bookmarks