How to choose a graphical toolkit for PyQt

I am developing a PyQt application for my clients. The problem is that my default image file is Gnome and my KDE client. Therefore, there is some difference that I cannot contrast.

How can I get pyQt to choose a good graphics system (Gnome) instead of the default system (KDE)?

+4
source share
2 answers

Use QApplication::setStyle ( QStyle * style ) with one of these values ​​as a parameter:

  • plastic
  • Cde
  • motive
  • SGI
  • window
  • Cleanlooks
  • mac.
+10
source

app.setStyle (QStyleFactory.create ("plastic")

is the way

+5
source

All Articles