Quote Originally Posted by caduel View Post
What error cause does QFile::errorString() give?
(On linux: make sure you have read permissions and, of course, that the path to the file is correct.)
i have tested,
Qt Code:
  1. if (file.open(QIODevice::Readonly))
  2. {
  3. QDataSteam in(&file);
  4. QString inin;
  5. in >> inin;
  6. textEdit->setPlainText(inin);
  7. }
  8.  
  9. else
  10. cerr<<file.error();
  11. QMessageBox::informaion(this, tr("OktoberFest"), tr("drink beer"), QMessageBox::ok);
To copy to clipboard, switch view to plain text mode 
the feedback is 5, that means The file could not be opened.

but actually i can open it use Textpad