I read the input text file line by line.
Qt Code:
  1. dataFile = new QFile(fileName);
  2. dataFile->open(QIODevice::ReadOnly | QIODevice::Text);
  3. dataStream = new QTextStream(dataFile);
  4. while( !dataStream->atEnd() ) {
  5. line = dataStream->readLine();
  6. ...
  7. }
To copy to clipboard, switch view to plain text mode 
The file is > 200Mb.
I need to update a progress bar while i analize the lines.
I was going to use
Qt Code:
  1. 100 * currentLine / numberOfLines
To copy to clipboard, switch view to plain text mode 
but how do i get the number of lines in the file?..

Thx!