I have a PyQt4
application that is being styled by an external .qss
file by using the following code:
...
app = QtGui.QApplication(sys.
This is just a guess, because I cannot test it myself, but you could try loading the font before setting the stylesheet:
app = QtGui.QApplication(sys.argv)
QtGui.QFontDatabase.addApplicationFont('path/to/font')
# or load the font data directly
# QtGui.QFontDatabase.addApplicationFontFromData(fontdata)
stylesheet = open('mystylesheet.qss').read()
app.setStyleSheet(stylesheet)