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.
this is covered in this faq [developer.qt.nokia.com]
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.
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 ?
Zambesi : I don't see any place to set the version number (please see picture), can you explain some more, please ?
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).