PDA

View Full Version : errorString



AnithaRagupathy
15th October 2007, 06:59
hi,
i m getting the errormessage and displaying it.It always gives the same errormessage("unknown error").
So how to test whether it would generate any other error messages if any error is found.
my code..............

QFile error();
/// Get the error message and display it
m_sLastError=error.errorString();

jpn
19th October 2007, 03:03
Take a look at QFile::FileError (http://doc.trolltech.com/4.3/qfile.html#FileError-enum). Reading the descriptions should give you an idea what can go wrong.