Results 1 to 2 of 2

Thread: errorString

  1. #1
    Join Date
    Oct 2007
    Posts
    21
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question errorString

    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();

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: errorString

    Take a look at QFile::FileError. Reading the descriptions should give you an idea what can go wrong.
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.