Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Switching PySide2 to PyQt5 in Qt Creator



  • How to switch PySide2 to PyQt5 in Qt Creator?



  • It depends on how you create your project/file.
    If you create a project of the type Application "Qt for Python", you will end up with a main.py where PySide2 is imported and I could not find the template file in the Qt installation files.
    If you simply create a new file of the type Python | Python Class you will be offered to choose between PyQt5 and Pyside2. The template file is in your Qt installation folder: Qt\Tools\QtCreator\share\qtcreator\templates\wizards\classes\python.

    Sorry, QtCreator is great but not perfect for Python yet from what I can tell :-/