A inspector to be able to view and edit Qt style sheet while an application is running
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Fixed some wrong repo and travis URLs Sep 28, 2016
qt_style_sheet_inspector Fixed style violations detected by flake8 Sep 28, 2016
tests
.gitignore 1st commit Sep 28, 2016
.travis.yml Add PyQt5 to requirements-dev Apr 19, 2018
CONTRIBUTING.rst Add deploy section on travis.yml (#2) Apr 19, 2018
HISTORY.rst
LICENSE
MANIFEST.in 1st commit Sep 28, 2016
README.rst Add conda-forge badge to README (#7) May 1, 2018
appveyor.yml Fix AppVeyor build configuration May 1, 2018
environment.yml 1st commit Sep 28, 2016
requirements_dev.txt Add PyQt5 to requirements-dev Apr 19, 2018
setup.cfg 1st commit Sep 28, 2016
setup.py Drop Python 2 support from the classifier Apr 19, 2018
tox.ini Fix AppVeyor build configuration May 1, 2018
travis_pypi_setup.py 1st commit Sep 28, 2016

README.rst

Qt Style Sheet Inspector

An inspector widget to view and modify the style sheet of a Qt app at runtime.

Usage

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:

https://github.com/williamjamir/demo_qt_inspector/blob/master/images/qt_inspector_demo.gif

Features

View current style sheet of an application during runtime

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.

Style sheet can be changed at runtime (Pressing CTRL+S)

https://github.com/williamjamir/demo_qt_inspector/blob/master/images/qt_inspector_runtime_changes.gif

Search bar to help find specific types or names (Pressing F3)

https://github.com/williamjamir/demo_qt_inspector/blob/master/images/qt_inspector_search.gif

Can undo/redo changes (Pressing CTRL+ALT+Z or CTRL+ALT+Y)

https://github.com/williamjamir/demo_qt_inspector/blob/master/images/qt_inspector_undo_redo.gif

Observation

It needs PyQt5 to work, but it doesn't have it as a dependency.

  • Free software: MIT license