How to get Qt Designer
- Download Qt Designer https://build-system.fman.io/qt-designer-download
- Helpful tutorial which also shows the method of how to translate ui code into python code near the end of the video. https://www.youtube.com/watch?v=FVpho_UiDAY
Convert ui code to Python code
- Create a blank python file and have it in the same place as the ui file.
- Open command prompt and change directory to where the ui file is.
- Type in the following: pyuic5 -x Name_of_the_ui_file.ui -o Name_of_the_python_file.py
- Enter
- When you open the python file, it will have your ui translated into python code.
Note
- When running the python file, you will need the test_display.py to be in the current directly that VisualStudio of whatever code system is reading.