0

Let's say I have painted 2 words:

qp.setFont(self.font)
qp.setPen(QtGui.QColor(255, 255, 255))
qp.drawText(event.rect(), QtCore.Qt.AlignCenter, str(self.setText + '\nKm/h'))

and have loaded custom font, is there a way to change font size just self.Text and '\nKm/k' leave at it is?

EDIT: I come up with to draw another text with different size.

0 Answers0