title: Initializing global variable class
body: <p>Apologies for such a basic question but I can't figure it out. I know you can initialize a class like this:</p>
  
  <pre><code>QFile file("C:\\example");
  </code></pre>
  
  <p>But how would you initialize it from a global variable? For example:</p>
  
  <pre><code>QFile file; //QFile class
  
  int main()
  {
      file = ?? //need to initialize 'file' with the QFile class
  }
  </code></pre>