Using a custom ttf font for QT apps
Streakflash last edited by
I want to use a custom font for my app under linux to make it looks better but I'm unable to add my "Droid Sans" font to QT app
#Using python QtGui.QFontDatabase.addApplicationFont(":/path/to/font/DroidSans.ttf") app = QtGui.QApplication(sys.argv) app.setFont(QtGui.QFont("Droid Sans"))
the font is not applied to my app. Am i doing something wrong?
You should check that the font is correctly added and also that you get a valid QFont