Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Switching PySide2 to PyQt5 in Qt Creator
Qt 6.12 LTS is out! See what's new in the release blog

Switching PySide2 to PyQt5 in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for pythonpythonpyside2
2 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hendry33
    wrote on last edited by
    #1

    How to switch PySide2 to PyQt5 in Qt Creator?

    1 Reply Last reply
    0
    • LimeyLimeL Offline
      LimeyLimeL Offline
      LimeyLime
      wrote on last edited by
      #2

      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 :-/

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved