Using a custom ttf font for QT apps

  • Hi,

    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
     app = QtGui.QApplication(sys.argv)
     app.setFont(QtGui.QFont("Droid Sans"))

    the font is not applied to my app. Am i doing something wrong?

  • Lifetime Qt Champion


    You should check that the font is correctly added and also that you get a valid QFont

Log in to reply