DOKK / manpages / debian 12 / python3-qdarkstyle / qdarkstyle.example.1.en
QDARKSTYLE.EXAMPLE(1) User Commands QDARKSTYLE.EXAMPLE(1)

qdarkstyle.example - qdarkstyle example gui program

usage: qdarkstyle.example [-h] [--palette {dark,light,none}]

[--qt_from {pyqt5,pyqt,pyside2,pyside,qtpy,pyqtgraph,qt.py}]
[--test] [--screenshots] [--offscreen] [--reset]

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 choosen)

To run this example using PyQt5, simple do

.. code-block:: python

python example.py

or

.. code-block:: python

--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.

.. code-block:: python

--qt_from=pyqt5 --palette=none

qdarkstyle does not have to be installed to run the example.

show this help message and exit
Palette to display. Using 'none' there is no style sheet applied, OS like.
Choose which binding and/or abstraction is to be used to run the example. Default is 'qtpy'
Auto close window after 2s.
Generate screenshots on images folder.
Do not try to show the screen (running on server).
Reset GUI settings (position, size) then opens.
January 2022 qdarkstyle