When I click "View Code" in Qt Designer (PyQt4), it tries to show the C++ code.
So, the workaround is to run:
pyuic4.bat test.ui > test.py
to convert the file to .py
.
Is there a way to execute the above workaround every time "View Code" is clicked or should I have to always perform it manually?
The answer by @WithMetta in the duplicate solved my problem.