Qt designer is a powerful tool to design pyqt gui. It will create some ui files.
However, in order to use these ui files in python, we should convert them to .py files. In this tutorial, we will introduce you how to convert.
First of all, you should install Qt Designer.
Then, we can use pyuic5 command to convert. Here is an example:
pyuic5 -o designer.py designer.ui
In this example, designer.ui is the input ui file, designer.py is the output python script file.
However, if you encounter Error: one input ui-file must be specified. You can fix this error by this tutorial: