2

I've been using QT Designer to design simple GUI and save as .ui file and then convert it to Python 3 code, But now I've found QT Design Studio which seems so much easier and better. But as I've seen it just create .qml files and it's a little bit harder to work with than .py UI file. Can I export .ui file with QT Design Studio and then convert it to Python 3 code?

1
  • 3
    No, qml is a language and cannot be translated into python, unlike .ui which is a simple xml that shows the attributes of the widgets. On the other hand, python can interact with qml (there are many examples on the site so I recommend you review them)
    – eyllanesc
    Commented Oct 3, 2020 at 20:33

1 Answer 1

1

At the first, you must save your file designed as .qml file in QT Design Studio, then open .qml file with QT creator and save as .ui

At the end, you can convert ui file to py file with the below syntax

pyuic5 -o ui_form.py form.ui

1
  • Doesn't work really...
    – DayDreamer
    Commented Jan 5 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.