An inspector widget to view and modify the style sheet of a Qt app at runtime.
In order to use the inspector widget on your application, it's necessary to initialize the class style_sheet_inspector_class
passing the instance of the QMainWindow
from the application.
The repository demo_qt_inspector contains a full example of a Qt Application with an inspector widget being called by a shortcut action.
See the demo in action:
The inspector only checks for style sheets that were applied to the QApplication, it's the topmost and any change here can be propagated to all children.
Style sheets that applied to an individual widget will not appear on the inspector.
It needs PyQt5 to work, but it doesn't have it as a dependency.
- Free software: MIT license