The most complete dark/light style sheet for Qt applications (Qt4, Qt5, PySide, PySide2, PyQt4, PySide6, PyQt5, PyQt6, QtPy, PyQtGraph, Qt.Py) for Python 2/3 and C++.
Python 2, as well as Qt4 (PyQt4 and PySide), will not be supported anymore. They are still there as it is, but no back-compatibility, fixes, nor features will be implemented.
Check the documentation to see how to set the desirable theme palette.
This module provides a function to load the stylesheets transparently with the right resources file.
First, start importing our module
import qdarkstyle
Then you can get the stylesheet provided by QDarkStyle for various Qt wrappers as shown below
# PySide 2
dark_stylesheet = qdarkstyle.load_stylesheet_pyside2()
# PyQt5
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt5()
# PySide 6
dark_stylesheet = qdarkstyle.load_stylesheet_pyside6()
# PyQt6
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt6()
Alternatively, from environment variables provided by QtPy, PyQtGraph, Qt.Py
# QtPy
dark_stylesheet = qdarkstyle.load_stylesheet()
# PyQtGraph
dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=os.environ('PYQTGRAPH_QT_LIB'))
# Qt.Py
dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=Qt.__binding__)
Finally, set your QApplication with it
app.setStyleSheet(dark_stylesheet)
Enjoy!
Metadata
Release files for QDarkStyle 3.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| QDarkStyle-3.2.3.tar.gz | 701.0 kB | Without provenance | Details for QDarkStyle-3.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| QDarkStyle-3.2.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for QDarkStyle-3.2.3-py2.py3-none-any.whl |
Total release size: 1.6 MB
Release files / QDarkStyle-3.2.3.tar.gz
| Download URL | QDarkStyle-3.2.3.tar.gz |
|---|---|
| Size | 701.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c0b7f74a6e92121008992b369bab60468157db1c02cd30d64a5e9a3b402f1ae
|
|
BLAKE2b-256 checksum How to use checksums |
ef1e5bf72a61a7636058e25eaa7503c050dae9445de75fad6f71ba08f2174e49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / QDarkStyle-3.2.3-py2.py3-none-any.whl
| Download URL | QDarkStyle-3.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 871.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ea980ee426d594909cf1058306832af71ff6cbad6f69237b036d1550635aefbc
|
|
BLAKE2b-256 checksum How to use checksums |
937dc3c10498430dadcea4def5faddf71cd199e577d20a125e7ef1e9d7bdbbfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for QDarkStyle 3.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.