How to configure Qt Creator and PySide
-
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 toENVNAME/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
anddouble-conversion.dll
. I added the directoryENVNAME/Library/bin/
, where I found those libraries to thePATH
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
-