Printable View
i'am under Ubuntu 9.04 with QT4 and eclipse, here is my code to open a existent file. Code: 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();