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. How to clone project configurations in Qt Creator?

How to clone project configurations in Qt Creator?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 483 Views 2 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    Every time I upgrade to a new Qt version, I have the following problem:
    I want to keep my build and run configurations for the old version around (at least for a while), and just want to add build and run configurations for the new version. I have multiple configurations (Debug, Debug without QML debugging, Release with Debug info, Sanitize...) and multiple targets, so manually adding all those (including the correct cmake variables and run settings) is quite a lot of work.

    Is there a way to e.g. clone all my existing configurations from Qt 6.6.3 to 6.7.2 and just adjust the necessary variables (like the Qt kit to use)?

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      In the Projects mode you can right click on the new Kit and select Copy Steps From Another Kit... :
      copy-steps-from-another-kit.png

      Alternatively you can do a manual change:

      1. In CMakeLists.txt.user replace 6.6.3 with 6.7.2, and 6_6_3 with 6_7_2.
      2. Rename the build directory build/Qt_6_6_3_for_macOS-Debug to build/Qt_6_7_2_for_macOS-Debug
      3. In build/Qt_6_7_2_for_macOS-Debug/CMakeCache.txt replace 6.6.3 with 6.7.2, and 6_6_3 with 6_7_2.
      4. Delete the build/Qt_6_7_2_for_macOS-Debug/.cmake directory.

      Then when you load your project things would just work! 😀

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        Thanks, didn't see the "Copy Steps from another kit", I have typically done it manually (in UI or CMakeLists.txt.user, but that file is close to 400k and not easy to navigate).
        Is there also a way to stop the project from being parsed before I have finished updating build path etc.? When adding new kits, they always start by polluting my source folder with lots of intermediate files, until I manage to change the build folder.

        1 Reply Last reply
        0

        • Login

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