내 PyQt 앱의 현재 스타일 시트 이름을 어떻게 알 수 있습니까?
app = QtGui.QApplication.instance()
print app.styleSheet()
app.styleSheet()
아무것도 반환하지 않습니다.
app = QtGui.QApplication.instance()
print app.style()
반환 <PyQt4.QtGui.QCommonStyle object at 0x0000000019BB4678>
문자열이 필요합니다 (예 : 'plastique').
찾고있는 경우 현재 스타일의 클래스 이름을 얻을 수 있습니다.
print app.style().metaObject().className()
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다