Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to configure Qt Creator and PySide

How to configure Qt Creator and PySide

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 3.3k 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.
  • D Offline
    D Offline
    dpcrd
    wrote on last edited by dpcrd
    #1

    Hi,

    I've been using Qt Creator for C++ for years and I love it ! Now, I have to develop a project in Python, but I can't figure out how to configure Qt Creator for PySide6.

    I installed Python and PySide6 from conda in a virtual environment, and these are the only versions of Python and PySide6 on the system (brand new PC). When I create a default Qt for Python > Empty window project, I can't run it from Qt Creator because it complains no kit is enabled for this project. However, I can run the project from the command line and I do see an empty QWidget.

    I could add a Python interpreter and let it point to ENVNAME/python.exe in the conda virtual env.
    When I try to add a Qt version, pointing to ENVNAME/Library/lib/qt6/bin/qmake.exe in the conda virtual env, 3 errors message boxes tell me that dll's are missing : zlib.dll, pcre2-16.dll and double-conversion.dll. I added the directory ENVNAME/Library/bin/, where I found those libraries to the PATH variable, but it didn't help.

    Could someone share his/her configuration tips ?

    I installed Qt Creator with Qt's online installer, but I didn't install any version of Qt with this tool, since I installed PySide6 with conda.

    Platform :

    • Windows 11
    • Qt Creator : 9.0.2
    • PySide6
    • Python : 3.9
    • Miniconda3 : conda 23.1.0
    D 1 Reply Last reply
    0
    • D dpcrd

      Hi,

      I've been using Qt Creator for C++ for years and I love it ! Now, I have to develop a project in Python, but I can't figure out how to configure Qt Creator for PySide6.

      I installed Python and PySide6 from conda in a virtual environment, and these are the only versions of Python and PySide6 on the system (brand new PC). When I create a default Qt for Python > Empty window project, I can't run it from Qt Creator because it complains no kit is enabled for this project. However, I can run the project from the command line and I do see an empty QWidget.

      I could add a Python interpreter and let it point to ENVNAME/python.exe in the conda virtual env.
      When I try to add a Qt version, pointing to ENVNAME/Library/lib/qt6/bin/qmake.exe in the conda virtual env, 3 errors message boxes tell me that dll's are missing : zlib.dll, pcre2-16.dll and double-conversion.dll. I added the directory ENVNAME/Library/bin/, where I found those libraries to the PATH variable, but it didn't help.

      Could someone share his/her configuration tips ?

      I installed Qt Creator with Qt's online installer, but I didn't install any version of Qt with this tool, since I installed PySide6 with conda.

      Platform :

      • Windows 11
      • Qt Creator : 9.0.2
      • PySide6
      • Python : 3.9
      • Miniconda3 : conda 23.1.0
      D Offline
      D Offline
      dpcrd
      wrote on last edited by
      #2

      OK, the solution was indeed to add ENVNAME\Library\bin to PATH... with the right syntax 😉.

      1 Reply Last reply
      0
      • D dpcrd has marked this topic as solved on

      • Login

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