Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt creator project settings
Forum Updated to NodeBB v4.3 + New Features

Qt creator project settings

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.2k 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.
  • V Offline
    V Offline
    vadim.savchuk
    wrote on 29 Jan 2018, 15:37 last edited by
    #1

    Hello. I have a project with non default build settings. I specified build directory, I added custom build steps. But when I load project on another PC, or on my PC after reinstalling Qt, Qt creator has default settings. How I can save settings in the project like a Visual Studio? When I load project on different machines, build settings should be automatically loaded. Thank you

    J 1 Reply Last reply 29 Jan 2018, 15:41
    0
    • V vadim.savchuk
      29 Jan 2018, 15:37

      Hello. I have a project with non default build settings. I specified build directory, I added custom build steps. But when I load project on another PC, or on my PC after reinstalling Qt, Qt creator has default settings. How I can save settings in the project like a Visual Studio? When I load project on different machines, build settings should be automatically loaded. Thank you

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Jan 2018, 15:41 last edited by
      #2

      @vadim.savchuk Such settings are stored in *.pro.user file. But it isn't a good idea to share these files between different machines and different users. It is better to specify these settings in *.pro file.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply 29 Jan 2018, 15:44
      2
      • J jsulm
        29 Jan 2018, 15:41

        @vadim.savchuk Such settings are stored in *.pro.user file. But it isn't a good idea to share these files between different machines and different users. It is better to specify these settings in *.pro file.

        V Offline
        V Offline
        vadim.savchuk
        wrote on 29 Jan 2018, 15:44 last edited by
        #3

        @jsulm Thank you for reply. But how I can add custom Build steps in .pro file? I added them in "Build&Run" tab.

        J 1 Reply Last reply 29 Jan 2018, 15:46
        0
        • V vadim.savchuk
          29 Jan 2018, 15:44

          @jsulm Thank you for reply. But how I can add custom Build steps in .pro file? I added them in "Build&Run" tab.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 29 Jan 2018, 15:46 last edited by
          #4

          @vadim.savchuk See http://doc.qt.io/qt-5/qmake-variable-reference.html
          http://doc.qt.io/qt-5/qmake-manual.html
          For example to specify build directory you can use DESTDIR variable:

          DESTDIR = ../../lib
          

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply 29 Jan 2018, 15:52
          1
          • J jsulm
            29 Jan 2018, 15:46

            @vadim.savchuk See http://doc.qt.io/qt-5/qmake-variable-reference.html
            http://doc.qt.io/qt-5/qmake-manual.html
            For example to specify build directory you can use DESTDIR variable:

            DESTDIR = ../../lib
            
            V Offline
            V Offline
            vadim.savchuk
            wrote on 29 Jan 2018, 15:52 last edited by
            #5

            @jsulm I know this. I mean custom build step. For example, I run bat file in custom build step.

            J 1 Reply Last reply 29 Jan 2018, 15:56
            0
            • V vadim.savchuk
              29 Jan 2018, 15:52

              @jsulm I know this. I mean custom build step. For example, I run bat file in custom build step.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 29 Jan 2018, 15:56 last edited by
              #6

              @vadim.savchuk Take a look at the links I posted. For example http://doc.qt.io/qt-5/qmake-advanced-usage.html could be helpful.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2

              1/6

              29 Jan 2018, 15:37

              • Login

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