jedisun
4th November 2009, 10:21
i'am under Ubuntu 9.04 with QT4 and eclipse, here is my code to open a existent file.
QFile file("SC");
if(!file.open(QIODevice::ReadOnly|QIODevice::Text) )
qDebug()<<"error"<<file.errorString();
and when i run the code , output is error "Unknown error".
what's wrong with it?
Thanks
QFile file("SC");
if(!file.open(QIODevice::ReadOnly|QIODevice::Text) )
qDebug()<<"error"<<file.errorString();
and when i run the code , output is error "Unknown error".
what's wrong with it?
Thanks