How to choose the graphic toolkit for PyQt

nam picture nam · Jan 7, 2013 · Viewed 8.4k times · Source

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.

How can I force the pyQt to choose the good graphical system (Gnome) instead of the default system (KDE)?

Answer

user1006989 picture user1006989 · Jan 7, 2013

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

  • plastique
  • cde
  • motif
  • sgi
  • windows
  • cleanlooks
  • mac