저는 pyqt4로 원격 앱을 만들고 있습니다. 그래서 UI에는 많은 CSS가 있습니다. 웹 앱과 같은 외부 스타일 시트를 사용하는 방법에 대해 궁금합니다. 예를 들어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")