Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将我的 pyside python 文件中的标签字体设置为资源文件中的嵌入字体。我在一个 qt qrc 文件中添加了字体,编译它会 rcc 并且我不想使用它。
搜索互联网我意识到我应该使用类似的东西:
fontDatabase=QtGui.QFontDatabase() fontDatabase.addApplicationFont(":/new/prefix1/FONT.TTF");
但是如何将此 fontDatabase 应用于我的按钮标签?