[Qt-creator] Qt for Python / deploy to Remote Linux Target

Christian Kandeler Christian.Kandeler at qt.io
Wed May 22 11:17:30 CEST 2019

On Tue, 21 May 2019 15:47:46 -0300
Pablo Rogina <pablojr at gmail.com> wrote:

> > Your first post indicates you already know the answer: Setting the INSTALLS variable. If you tell us what exactly you did there, we will probably be able to spot the problem.
> 1. New Project / Application / Qt for Python - Empty
> 2. Project created as main with 2 files: main.pyproject + main.py
> 3. Contents of main.pyproject:
> {
>     "files": ["main.py"]
> }
> 4. Select Projects. From Build & Run, selected a kit with a Remote
> Linux Host configured
> 5. Select Run so Run Settings page is displayed. Files to deploy list is empty
> 6. Configure Run configuration with Custom Executable (on device
> name). Select python as remote executable, main.py as command line
> arguments
> 7. Ctrl+R fails because main.py was not deployed/copied to remote
> device as rsync step had an empty file list
> Then I manually created a project file main.pro with contents:
> fileset.path = /home/alarm
> fileset.files = main.py
> INSTALLS += fileset
> A. If I add the .pro file to main (in bold from project explorer) with
> Add Existing Files... file main.pyproject is overwritten and becomes a

Huh? Of course the pro file doesn't do anything if you add it to a python project. Its contents are only relevant if it *is* the project file. You cannot mix. If you want to use the python project format, you have to live with what it offers.


More information about the Qt-creator mailing list