Show application version on my "AboutPage"

I have it like this:

  1. In .pro file: DEFINES += MYAPP_VERSION='\\"$$VERSION\\"'
  2. In main(): app->setApplicationVersion(QStringLiteral(MYAPP_VERSION));
  3. In your QML: Qt.application.version

This is a slightly improved version of what i got contributed from Rudi T, kudos to him.

4 Likes