title: Qt; no matching function for call
body: <p>Getting this error in a Qt project;</p>
  
  <pre><code>C:\Users\Seb\Desktop\SDIcw2\shipHandler.cpp:20: error: no matching function for call to 'std::basic_ifstream&lt;char&gt;::open(QString&amp;)'
       infile.open(qstr);
                       ^
  </code></pre>
  
  <p>Happening in this constructor;</p>
  
  <pre><code>SDI::shipHandler::shipHandler(std::string fileName)
  {
      QString qstr = QString::fromStdString(fileName.c_str());
      std::string line;
      std::ifstream infile;
      infile.open(qstr);
      while(!infile.eof()) 
      {
          getline(infile,line); 
          shipHandler::lineParse(line);
      }
      infile.close();
  }
  </code></pre>
  
  <p>I'm creating initializing the class in another thread by;</p>
  
  <pre><code>SDI::shipHandler sh("ships.txt");
  </code></pre>
  
  <p>Only just solved a problem on Qt and its brought about another problem. Really getting annoyed with this and I hate posting a lot on here. Simply trying to pass the file name to open, worked in visual studio but moving here to add the gui. Help is GREATLY appreciated </p>