code: def setFont(self, font):
          
          check_class(font, QtGui.QFont, allow_none=True)
          self._font = font
docs: Sets the font that will be returned when data() is called with the Qt.FontRole.
              Can be a QFont or None if no font is set.