Program version



  • 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



  • 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



  • 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.



  • 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)!



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



  • [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).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.