Created
June 13, 2012 03:06
-
-
Save mrmurphy/2921575 to your computer and use it in GitHub Desktop.
How to read a font from the .qrc file pyqt.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up font: | |
self.fontDB = QtGui.QFontDatabase() | |
self.fontDB.addApplicationFont(":/resources/Bariol_Regular.otf") | |
self.setFont(QtGui.QFont("Bariol", 18)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment