Results 1 to 2 of 2

Thread: error message

  1. #1
    Join Date
    Nov 2009
    Posts
    16
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default error message

    I have a config file. When this file can not be found, I want to create an error message . How can I do. I call my config file like this;

    static const ConfigFile config("c://configuration.eec");

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: error message

    If you want to check this in a Qt program use :
    Qt Code:
    1. bool QFile::exists () const
    To copy to clipboard, switch view to plain text mode 
    .

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.