title: When should I use qApp->setProperty on Qt
body: <p>I'm not finding, on the <strong>Qt</strong> documentation, a section explaining about the <code>qApp-&gt;setProperty()</code> option (it is probably there, but I can't find it). Can someone explain to me basically how it works and when should I use it?</p>
  
  <p>I'm asking it because I need to define the path of my database file as a "global constant", to be used in many classes, so I was thinking in set it using the <code>setProperty</code> function.</p>
  
  <p>For example:</p>
  
  <pre><code>qApp-&gt;setProperty("DATABASE_PATH", "C:/../Database.db");
  </code></pre>
  
  <p>Then, access it using:</p>
  
  <pre><code>qApp-&gt;property("DATABASE_PATH").toString();
  </code></pre>
  
  <p>Can I do that or there is a better/correct way to do so?</p>