I am trying to read a 2.5GB text file.

Qt Code:
  1. QFile input_file(filename);
  2. if (!input_file.open(QIODevice::ReadOnly))
  3. return;
  4. qint64 x = input_file.bytesAvailable();
  5. QString test = input_file.readLine();
  6. QString test2 = input_file.readAll();
To copy to clipboard, switch view to plain text mode 

Both test and test2 are empty.
x = 2682500677
Also, isReadble() is true, but canReadLine() is false
I can read a 5MB file with no problem.