how to convert qt5-designer generate .ui file to .py file?

I tried to convert the .ui file which is generated using qt5 designer to .py but all those ways are different some are working some are not working.

1 Answer

I tried in different ways but finally, get to know the solution for that.

open the terminal and type the below command in it.

It will generate .py file

 pyuic5 -x main.ui -o main.py # pyQt5 version

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like