Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Created June 13, 2012 03:06
Show Gist options
  • Save mrmurphy/2921575 to your computer and use it in GitHub Desktop.
Save mrmurphy/2921575 to your computer and use it in GitHub Desktop.
How to read a font from the .qrc file pyqt.
# 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