pyuic5(1)

pyuic51

Compile qt5 user interfaces to python code

Usage

pyuic5 [OPTION] ... FILE

Overview

pyuic5 takes a Qt5 user interface description file and compiles it to Python code. It can also show a preview of the user interface.

Options

-h, --help

Show a summary of the options.

--version

Display the pyuic and Qt version numbers and exit.

-p, --preview

Show a preview of the UI instead of generating Python code.

-o, --output=FILE

Write the generated Python code to FILE instead of stdout.

-d, --debug

Show detailed debugging information about the UI generation process.

-x, --execute

Generate extra code to test and display the class when executed as a script.

-i, --indent=NUM

Set the indentation width to NUM spaces. A TAB character will be used if NUM is 0 (default: 4).

Options

--import-from=PACKAGE

Generate imports of pyrcc5 generated modules in the style "from PACKAGE import ...".

--from-imports

The equivalent of "--import-from=.".

--resource-suffix=SUFFIX

Append SUFFIX to the basename of resource files (default: _rc).

Releases

6 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9–13

--from-imports since Debian 9 (Stretch); --import-from since Debian 9 (Stretch); --resource-suffix since Debian 9 (Stretch).

Author

This manual page was written for Debian GNU/Linux by Torsten Marek <[email protected]>, but may freely be used by others.

From pyqt5-dev-tools 5.15.11+dfsg-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.