如何为PyQt选择图形工具包 [英] How to choose the graphic toolkit for PyQt
本文介绍了如何为PyQt选择图形工具包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为客户开发PyQt应用程序.问题是我的默认图形是Gnome,而我的客户端KDE.所以有一些我无法控制的差异.
I'm developing an PyQt application for my clients. The problem is that my default graphical is Gnome and my client KDE. So there is some difference I can not contrôle.
如何强制pyQt选择好的图形系统(Gnome)而不是默认系统(KDE)?
How can I force the pyQt to choose the good graphical system (Gnome) instead of the default system (KDE)?
推荐答案
使用 QApplication::setStyle ( QStyle * style )
,并将以下值之一作为参数:
Use QApplication::setStyle ( QStyle * style )
with one of these values as parameter:
- plastique
- cde
- 母题
- sgi
- windows
- cleanlooks
- mac
这篇关于如何为PyQt选择图形工具包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文