'Set the title text font (:class:`QFont`).'

def setFont(self, font):

    if (font != self.font()):
        self.prepareGeometryChange()
        self.captionTextItem.setFont(font)
        self.__updateTitleText()
