Skip to main content

A Qt-5 interactive stylesheet preview script

Project description

pyside2-style-test

Build Status License

A Qt-5 live updating styleable component test kit.

This application displays Qt-5 compliant widgets with a live preview of edits made to the desired stylesheet. It's currently intended to be used as a standalone application, not a library; although future releases may offer more features. I did make the functionality of this program available as a Qt Widget if you'd like to extend the functionality or use it in another program. So have at it.

The reason I decided to make this was to solve a issue I was running into trying to develop a QSS stylesheet system variant of the Purplest Inc Theme for Github's Atom Text Editor. For some reason, the Qt development team doesn't have any tools like this available to the open source community. At least none that I could find, even in the private sector! I found one on Sourceforge that was windows a exclusive release, and that's it. I guess the Qt Core development team may not see it as useful considering I only found one blog detailing the amazing feature that is Qt supporting a CSS variant. It even hosted some stylesheets! But as amazing as it is that I found someone who understands the beauty of CSS, it was tainted by the fact that I was still out of a way to reliably preview my Qt stylesheets.

Now I hope nobody else has to feel that way.

How to use:

Simply using pyside2-style-test.py /path/to/my/stylesheet at a terminal should incur the loading of the application. Any edits made to the stylesheet specified will be viewable while the application is running.

Alternatively, if you've downloaded this from PyPI using pip, then you can pyside2-style-test /path/to/my/stylesheeet from anywhere.

In the future:

Beyond version 1.0.0 leading into version 2.0.0, I do plan on making this at least a little more modular and to optimize the way widgets are previewed. I will eventually draft and upload a diagram of my future GUI. Just not today. I've gotta dig myself out of my project hole first. So if this is something you find helpful, look forward to that.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m3tior-pyside2-style-test-0.9.3.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

m3tior_pyside2_style_test-0.9.3-py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page