title: Access application version from within QML
body: <p>I have defined this macro in my <code>*.pro</code> project file:</p>
  
  <pre><code># The application version
  VERSION = 6.10.0
  
  # Define the preprocessor macro to get the application version in our application.
  DEFINES += APP_VERSION=\\\"$$VERSION\\\"
  </code></pre>
  
  <p>Then I set my application version like this:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication app(argc, argv);
  
      /*
       * Setting the Application version
       */
      app.setApplicationVersion(APP_VERSION);
  
      // ...
  
  }
  </code></pre>
  
  <p>Now I want to access the application version inside my QML code which is in a <strong>shared library</strong>. How can I do that? :</p>
  
  <pre><code>    ColumnLayout {
          id: versionLayout
  
          StyledLabel {
              text: qsTr("Version")
              font.weight: Font.Bold
          }
          RowLayout {
              StyledLabel {
                  Layout.alignment: Qt.AlignCenter
                  text: APP_VERSION // How can I access my macro/version here?
                                    //  QApplication.applicationVersion() is NOT working!
              }
          }
      }
  </code></pre>