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. QtCreator Q_VER_MIN Q_VER_PAT

QtCreator Q_VER_MIN Q_VER_PAT

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 776 Views 3 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
    ad5xj
    wrote on last edited by
    #1

    This may be a newbie question. If so I do apologize.

    But, is there a way to automatically advance the value of Q_VER_PAT on each compile? Or is it totally manual by editing the script file or .pro

    Ken AD5XJ

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      No there's not, that's typically something that you set when you will do a patch release which is outside of the build/rebuild cycle.

      Usually you would add a build number if you want to provide more information about than the classic Major/Minor/Patch versioning.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        No there's not, that's typically something that you set when you will do a patch release which is outside of the build/rebuild cycle.

        Usually you would add a build number if you want to provide more information about than the classic Major/Minor/Patch versioning.

        A Offline
        A Offline
        ad5xj
        wrote on last edited by
        #3

        @SGaist that is good to know. I am familiar with the build number. Several build-from-src packages I use have it.

        So, add a build number to what?
        Are you referring to the .pro file or a display of the version of the app? What did you have in mind?
        Are you inferring that the build number is one that can be incremented when the build has been compiled and linked by QtCreator as a package?

        Ken AD5XJ

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What I have in mind is rather one that is based on your version control status. Something that allows you to get back to the exact commit that was used to build the exec.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            What I have in mind is rather one that is based on your version control status. Something that allows you to get back to the exact commit that was used to build the exec.

            A Offline
            A Offline
            ad5xj
            wrote on last edited by
            #5

            @SGaist
            Yes, I know all that. It can be done manually.

            But, that does not answer my questions. Please address the questions relevant to QtCreator and my project.

            There is almost no mention of the build number aspect in the QMake or QtCreator docs except as a passing thought. I would like more information on how to generate, increment, and programmatically use this number.

            You have considerable experience and knowledge to provide this answer so please do.

            Ken AD5XJ

            artwawA 1 Reply Last reply
            0
            • A ad5xj

              @SGaist
              Yes, I know all that. It can be done manually.

              But, that does not answer my questions. Please address the questions relevant to QtCreator and my project.

              There is almost no mention of the build number aspect in the QMake or QtCreator docs except as a passing thought. I would like more information on how to generate, increment, and programmatically use this number.

              You have considerable experience and knowledge to provide this answer so please do.

              artwawA Offline
              artwawA Offline
              artwaw
              wrote on last edited by
              #6

              @ad5xj said in QtCreator Q_VER_MIN Q_VER_PAT:

              Please address the questions relevant to QtCreator and my project.

              This has already been addressed:

              @SGaist said in QtCreator Q_VER_MIN Q_VER_PAT:

              No there's not,

              For more information please re-read.

              Kind Regards,
              Artur

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                As I already suggested, you can use your version control system to extract the hash of the current commit for example.

                Use the system qmake command for that.

                Then you can use QMAKE_SUBSTITUTES like described in this article to include the information in your library/application.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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