title: Read a text file line by line in Qt
body: <p>How can I read a text file line by line in Qt?</p>
  
  <p>I'm looking for the Qt equivalent to:</p>
  
  <pre><code>std::ifstream infile;
  std::string line;
  while (std::getline(infile, line))
  {
     ...
  }
  </code></pre>