title: I want to declare a global variable for flag in QML
body: <p><strong>I want to declare a global variable for flag in QML.</strong><br>
  Like,  </p>
  
  <p><code>var Flag = true;</code>  </p>
  
  <p>I need it so that I can use the <strong>Flag</strong>  at multiple places in QML file.<br>
  Is it possible without JavaScript or C++?</p>
  
  <p>If yes, please reply and if not then please help me with coding for a JavaScript or C++ script.  </p>
  
  <p>Thank you!</p>