Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Another hour of Google, and I still managed to find the answer, in order for the font to work we need: Download this font * .ttf and drop it into the folder with the program files, this is necessary in order to specify the exact path to font, regardless of the computer on which your application is installed, additional actions from the user are also not required. And so what we do:
app = QtWidgets.QApplication(sys.argv)
myapp = Interface()
myapp.show()
sys.exit(app.exec_())
app = QtWidgets.QApplication(sys.argv)
QtGui.QFontDatabase.addApplicationFont(fr'путь к нашему шрифту')
myapp = Interface()
myapp.show()
sys.exit(app.exec_())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question