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

Qt creator project settings

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.1k 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 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

    jsulmJ 1 Reply Last reply
    0
    • V vadim.savchuk

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      2
      • jsulmJ jsulm

        @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 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.

        jsulmJ 1 Reply Last reply
        0
        • V vadim.savchuk

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          1
          • jsulmJ jsulm

            @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 last edited by
            #5

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

            jsulmJ 1 Reply Last reply
            0
            • V vadim.savchuk

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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

              • Login

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