Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道如何为小部件设置样式表(使用setStyleSheet),但是有什么方法可以读取小部件的样式表吗?
setStyleSheet
只需调用该styleSheet()方法。PyQt 文档- 不是那么富有表现力:)。Qt Docs以获得更详尽的解释。
styleSheet()