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. Qt for Python with .pyproject file in Qt Creator. Is the .pro file gone forever?
Forum Updated to NodeBB v4.3 + New Features

Qt for Python with .pyproject file in Qt Creator. Is the .pro file gone forever?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
pythonqt creatorpyproject
5 Posts 2 Posters 4.0k Views 1 Watching
  • 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.
  • Pablo J. RoginaP Offline
    Pablo J. RoginaP Offline
    Pablo J. Rogina
    wrote on last edited by
    #1

    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.

    Upvote the answer(s) that helped you solve the issue
    Use "Topic Tools" button to mark your post as Solved
    Add screenshots via postimage.org
    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

    aha_1980A 1 Reply Last reply
    0
    • Pablo J. RoginaP Pablo J. Rogina

      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.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Pablo-J.-Rogina

      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

      Qt has to stay free or it will die.

      Pablo J. RoginaP 1 Reply Last reply
      1
      • aha_1980A aha_1980

        @Pablo-J.-Rogina

        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

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @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

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        aha_1980A 1 Reply Last reply
        0
        • Pablo J. RoginaP Pablo J. Rogina

          @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

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Pablo-J.-Rogina

          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

          Qt has to stay free or it will die.

          Pablo J. RoginaP 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @Pablo-J.-Rogina

            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

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

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

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            2

            • Login

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