i'am under Ubuntu 9.04 with QT4 and eclipse, here is my code to open a existent file.
Qt Code:
  1. QFile file("SC");
  2. if(!file.open(QIODevice::ReadOnly|QIODevice::Text))
  3. qDebug()<<"error"<<file.errorString();
To copy to clipboard, switch view to plain text mode 

and when i run the code , output is error "Unknown error".
what's wrong with it?
Thanks