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. Program version
Forum Updated to NodeBB v4.3 + New Features

Program version

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 7.5k Views 1 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.
  • K Offline
    K Offline
    kimf
    wrote on last edited by
    #1

    Hi

    How do I set the program version in qt-creator ?

    I have an application I want to distribute for linux (maemo), when I created the project I set the program version to 1.0, and the distribution (.deb) build is also of version 1.0.

    Now I have made some changes, so now the version should be 1.1, but even though i have added the VERSION = 1.1.0 line to the .pro file, the distribution still is named TestProject_1.0_armel.deb !

    By the way, are there any central place for the version number, I would like to only have to set the version once, and then being able to use this in the about text in the program, in the distribution package name and the distribution control file etc.

    Thanks.

    Kim Foder

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      this is covered in this "faq":http://developer.qt.nokia.com/faq/answer/how_can_i_control_how_qmake_adds_version_to_target_filename

      if that doesn't work can u post you .pro file here

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kandeler
        wrote on last edited by
        #3

        The package version number can be set from the packaging widget (Creator 2.0: In the project's build settings, master branch: in the run settings).
        The VERSION string from the project file is NOT synchronized with the package version. Rationale: A Qt project can have several sub projects, each with their own version number (e.g. different libraries), but only one package will be created.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kimf
          wrote on last edited by
          #4

          bq. this is covered in this faq

          Unfortunately not, this faq is the one causing me to try and set the version = x.y.z parameter in the .pro file, and as zambesi writes this does not set the package version number.

          Zambesi : I don't see any place to set the version number (please see picture), can you explain some more, please ?

          Kim

          !http://lpws.mine.nu/screenshot.png(screenshot)!

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            give this "link":http://wiki.maemo.org/Packaging_a_Qt_application a shot, there is also a link to the packaging guide there

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kandeler
              wrote on last edited by
              #6

              [quote author="kimf" date="1282680414"]

              Zambesi : I don't see any place to set the version number (please see picture), can you explain some more, please ?

              [/quote]

              Whoops, looks like Creator 2.0 hardcodes the version number. Sorry about that, it's not so easy to keep track of when what feature was added. Anyway, Creator 2.0.1, which is coming very soon, will let you set the package version. (It's mostly a bugfix release, but it has some new features as well).

              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