qdarkstyle.example.__main__ module¶
Example of qdarkstyle use for Python and Qt applications.
This module a main window with every item that could be created with Qt Design (common ones) in the basic states (enabled/disabled), and (checked/unchecked) for those who has this attribute.
Requirements:
- Python 3
- QtPy
- PyQt5 or PyQt4 or PySide2 or PySide
- PyQtGraph or Qt.Py (if chosen)
To run this example using PyQt5, simple do
python example.py
or
python example.py --qt_from=pyqt5
Other options for qt_from are: pyqt5, pyside2, pyqt, pyside, qtpy, pyqtgraph, and qt.py. Also, you can run the example without any theme (none), to check for problems.
python example.py --qt_from=pyqt5 --palette=none
Note
qdarkstyle does not have to be installed to run the example.
-
qdarkstyle.example.__main__.
_read_settings
(window, reset, QSettingsClass)[source]¶ Read and set window settings from a file.
-
qdarkstyle.example.__main__.
_write_settings
(window, QSettingsClass)[source]¶ Get window settings and write it into a file.