T
T
tfaders2021-11-21 10:10:38
PyQt
tfaders, 2021-11-21 10:10:38

How to change font in PyQt5?

Hello everyone
I need to change the font in the application, I use the method self.btn.setFont(QtGui.QFont("myfont.otf", 20, QtGui.QFont.Bold))
But the one I need is not set, what should I do?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question