So if I go into QtDesigner and build a UI, it’ll be saved as a .ui file. How can I make this as a python file or use this in python?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another way to use .ui in your code is:
both approaches are good. Do not forget, that if you use Qt resource files (extremely useful) for icons and so on, you must compile it too:
Note, when
uiccompiles interface, it adds ‘import images_rc’ at the end of .py file, so you must compile resources into the file with this name, or rename it in generated code.