私はpyqt4でリモートアプリケーションを作成しています。したがって、UIには多くのCSSがあります。私はWebアプリケーションのような外部のスタイルシートを使う方法を考えていました。例についてはPyQT4プロジェクトに外部スタイルシートを使用する方法は?
:
button_one.setStyleSheet("QPushButton { background-color:#444444; color:#ffffff; border: 2px solid #3d3d3d; width: 15px; height: 25px; border-radius: 15px;}"
"QPushButton:pressed { background-color:#ccc;}")
Instead of the above code
button_one.setStyleSheet("QPushButton.styleclass or #styleid")