Kevés doksi kotorgálás után javaslom az error metódus kipróbálását: http://doc.qt.nokia.com/4.7/qfile.html#error