[Interest] x-platform way to pull app version?

Thiago Macieira thiago.macieira at intel.com
Mon Feb 1 18:19:30 CET 2016


On Monday 01 February 2016 16:35:37 Jason H wrote:
> Currently, I have a string that I have to manually maintain, is there a way
> I can call some function and get my application version (that's in the
> plist or manifest)? 

Please search the Cocoa and Win32 API. That's not a Qt question.

If you want to automate your version number, you can set a macro with it and 
then save:

VERSION = 1.0.1
DEFINES += VERSION=\\\"$$VERSION\\\"

in .cpp:

const char *appversion()
{
	return VERSION;
}

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list