title: no matching function for call to ‘std::basic_ifstream<char>::basic_ifstream(QString&)’
body: <p>this is my first time working with QString, I don't know how to solve this error:</p>
  
  <p>Personanetscape.cpp:16: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(QString&amp;)’</p>
  
  <p>this is my .h</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  #include &lt;qstring.h&gt;
  #include &lt;qmap.h&gt;
  
  typedef QMap&lt;QString, QString&gt; Map;
  
  
  class PersonaNetscape
  {
    private:
      std::ifstream fileIn;
      Map map;
  
    public:
      PersonaNetscape(QString nameFileIn);
      ~PersonaNetscape();
      bool personIn(); 
      QString search(QString field); 
  };
  </code></pre>
  
  <p>this is my .cpp</p>
  
  <pre><code>#include "Personanetscape.h"
  
  
  PersonaNetscape::PersonaNetscape(QString nameFileIn)
                  : fileIn(nameFileIn) //this is line 16 in my code
  {
    if(!fileIn)
      throw nameFileIn;
  }
  
  </code></pre>
  
  <p>How do I fix this?</p>
  
  <p>Thanks.</p>