Qt World Summit: Submit your Presentation

How to convert .py to .ui?

  • Hello, I want to ask you for help.
    mac + python3.7 + qt5 + pycharm

    I know use pycharm set tool:
    can covert .ui to .py by QtDesinger create a .ui.

    But how to covert .py to .ui, so that QtDeinger can reload the new .ui?
    I know someone use windows can use pyrcc5.exe:

    But I can't find the pyrcc in mac, and there're not "Script" in "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7"

    I just find this but how to use it to convert .py to .ui?

    Thank you very much.

  • I'm not aware of any tool to do that. UI is an XML description of the interface. PY is the processed output of that description. I'm not sure anyone has ever identified enough need to go the other direction.

Log in to reply