Solved Qt for Python with .pyproject file in Qt Creator. Is the .pro file gone forever?
-
I installed Qt Creator 4.9 and created a new project from the wizard: "Qt for Python - Window" project and a new .pyproject file was created along with main.py
Is the .pro project file gone for this type of applications?
The problem is I'd like the Python files deployed to a generic Linux device and the "Files to deploy" list kept unpopulated, and I think it's because there's no INSTALLS variable anywhere.
-
There seem indeed to be changes in Creator 4.9, which lead to QTCREATORBUG-22393 (which you already know, I guess).
But I thought that .pyproject has been a simple text file with each filename in one line before.
Are you going to say it was a regular .pro file before?
Regards
-
@aha_1980 said in Qt for Python with .pyproject file in Qt Creator. Is the .pro file gone forever?:
Are you going to say it was a regular .pro file before?
No, I'm not saying that as the Qt for Python thing is new to me and I'm exploring Qt Creator capabilities for that.
And given that there's no .pro now, I don't know how to make Qt Creator know what files to deploy remotely
-
Ok. I'm only aware of QtCreatorDeployment.txt for non-Qt-projects.
I'm not sure if that works in conjunction with Python projects, though.
Regards
-
Just an update.
It looks like the QtCreatorDeployment.txt file is only taken into account by CMake Project or Generic Project.
So I created a Generic Project, add the Python file(s) to the .files file, removed all the steps from the Build Settings tab, and configured the Run Settings with a Custom Executable where I set python as the remote executable, and main.py as the command line arguments while enabling Forward to local display.
And it worked :-)