Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt creator project settings

    General and Desktop
    2
    6
    806
    Loading More Posts
    • 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
      vadim.savchuk last edited by

      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

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @vadim.savchuk last edited by

        @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 Reply Quote 2
        • V
          vadim.savchuk @jsulm last edited by

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

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @vadim.savchuk last edited by

            @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 Reply Quote 1
            • V
              vadim.savchuk @jsulm last edited by

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

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @vadim.savchuk last edited by

                @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 Reply Quote 2
                • First post
                  Last post