Results 1 to 4 of 4

Thread: QDomDocument - cannot find

  1. #1
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QDomDocument - cannot find

    Hi,

    My application complains showing it cannot find QDomDocument in my include directive :

    #include <QDomDocument>

    Am I missing something? I'm sure when I installed Qt4.3 I turned on the XML option.

    I am using Windows XP.

    Any help is appreciated,

    Regards,
    Steve

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QDomDocument - cannot find

    Did you insert this line, in your project file ?

    Qt Code:
    1. QT += xml
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDomDocument - cannot find

    Hi,

    I had to do :

    #include <QtXml\QDomDocument>

    Duh!

    Thanks anyway,

    Steve

  4. #4
    Join Date
    Mar 2014
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Android

    Smile Re: QDomDocument - cannot find

    If you add:

    QT += XML


    There's less chance you'll run into other errors.http://www.qtcentre.org/images/icons/icon7.png

Similar Threads

  1. Cannot find file: winmain.pro in Qt installation
    By jivanr in forum Installation and Deployment
    Replies: 3
    Last Post: 11th June 2007, 12:22
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. QT string Find problem
    By kingslee in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2006, 20:45
  4. Replies: 7
    Last Post: 1st August 2006, 21:15
  5. Adding whitespace in QDomDocument
    By jakamph in forum Newbie
    Replies: 4
    Last Post: 6th February 2006, 22:06

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.