Results 1 to 2 of 2

Thread: XML - Sax Engine, QXmlSimpleReader error

  1. #1
    Join Date
    Apr 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default XML - Sax Engine, QXmlSimpleReader error

    I'm trying to design a simple qt application, going step by step w/ a qt book. I'm on the part about designing an application that reads an xml file. However when I goto compile i get the following error in my header file: QXmlSimpleReader: No such file or directory

    It's erroring on the following line:
    Qt Code:
    1. #include <QXmlSimpleReader>
    To copy to clipboard, switch view to plain text mode 

    It looks like to me that the xml support wasn't installed in my qt install. Is this in fact the error? Is there a way to install this module/api?

    I'm using the windows platform.

    Jeremy

  2. #2
    Join Date
    Apr 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Using XML in QT

    I believe I found the solution to my problem within QT.

    Within your .pro file you have to include this line:

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

    I found this in QtAssistant under the heading QtXML Module:

    Applications that use Qt's XML classes need to be configured to be built against the QtXml module. The following declaration in a qmake project file ensures that an application is compiled and linked appropriately:
    QT += xml
    This line is necessary because only the QtCore and QtGui modules are used in the default build process.
    After I added the line in my .pro file i received successful compile

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

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.