有人知道如何在PyQt5中更改默认字体吗?
self.setFont()无效
font = QFont("Chilanka",14)
class Main(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("myApp")
self.setGeometry(450,150,750,600)
self.setFont(font)
self.show()