如何在Qt Designer中设置主题?

时间:2019-06-18 08:46:45

标签: qt ubuntu icons themes qt-designer

我使用Qt Designer设计用户界面,然后在Python中加载*.ui文件。

对于按钮,我想从Breeze主题添加图标。在Qt Designer中,我可以通过“从主题设置图标...”添加图标

enter image description here

但这是从其他主题加载图标。在我的Python代码中,通过选择主题。

QtGui.QIcon.setThemeName("breeze")

它在运行时显示如下:

enter image description here

这也是我想在Qt Designer中看到的。

问题:如何设置Qt Designer以使用Breeze主题中的图标?

  

版本:

     
      
  • Qt Creator:基于Qt 5.5.1的3.5.1
  •   
  • Ubuntu:16.04
  •   
  • PySide2:5.12.3
  •   
  • Python:2.7.12
  •   

0 个答案:

没有答案
相关问题