I'm trying to convert a .ui file into a python file using uic file.ui -o file.py
and other combinations of that, but even though the generated file is a .py file, the code that's in it is c++. After some googling and researching some uic prefixes I noticed that in my uic --help menu I only have java and cpp generators, but in every tutorial ppl have python|cpp generators.
What might be the reason for that and how can that be fixed?
The generator for python has been introduced in the latest versions of Qt so it is probably not available in your 5.9.7 version of Qt, so you will have to install a more recent version, for example in my case I use version 5.15.2:
so now I can convert the .ui to .py by running: