문제

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)?

도움이 되었습니까?

해결책

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

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

다른 팁

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

is the way to go

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top