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. How to permanantly change .pro settings
Forum Updated to NodeBB v4.3 + New Features

How to permanantly change .pro settings

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 433 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.
  • DriftwoodD Offline
    DriftwoodD Offline
    Driftwood
    wrote on last edited by Driftwood
    #1

    Where can I change the default .pro file settings so that a new project is initially set at C++17 or C++20? It defaults to C++11 and I never use that. So each new project requires me to make the change manually, which isn't a huge undertaking. But if I'm busy, I've sometimes forgot to do that and then go nuts trying to figure out why my code isn't working properly.

    Thanks.

    J.HilkJ 1 Reply Last reply
    0
    • DriftwoodD Driftwood

      Where can I change the default .pro file settings so that a new project is initially set at C++17 or C++20? It defaults to C++11 and I never use that. So each new project requires me to make the change manually, which isn't a huge undertaking. But if I'm busy, I've sometimes forgot to do that and then go nuts trying to figure out why my code isn't working properly.

      Thanks.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      @Driftwood
      I haven't tried it yet, but you can find the project templates under (windows)

      PathToQt\Tools\QtCreator\share\qtcreator\templates\wizards\projects
      

      and modify them, that should effect your default projects, that you create via the wizard


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      6
      • DriftwoodD Offline
        DriftwoodD Offline
        Driftwood
        wrote on last edited by
        #3

        @J-Hilk - Worked like a charm. Thank you for the info.

        1 Reply Last reply
        2
        • JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          Now that this question/thread is solved, I feel like saying: until I read this this I had no idea that my (recently-created) Qt project was compiling with C++ 11 rather than a later one....

          It would be a different thread if I were now to dare ask what I am missing out on. Because glancing through the changes I see a progression to yet more esoteric/complex constructs. But I have learned that if I move all the way up I should be able to write essentially all my code with auto and not have a clue what types anything are... :D And to think I finally managed to move off Python and back to C++, partly because I was fed up with Python's lack of source code explicit typing.

          1 Reply Last reply
          1

          • Login

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