PDA

View Full Version : Reference to a class



Gayathri
18th December 2006, 14:56
Hi,
I am using Qt 4.2 open source version. Wrote one sample program for parsing a XML file. The reference to the XML class provided, using #include satetement is not recognized by the parser and gives the error message "File or directory not found". Please help me out.

Thanks in advance. :)

jpn
18th December 2006, 15:01
To link against the QtXml module, add this line to your .pro file:

QT += xml

PS. Remember to re-run qmake after modifying the .pro file.

Gayathri
18th December 2006, 15:10
Thanks. Is there any easy way to set this path? As this needs to be written every time I qmake the project.:)

munna
18th December 2006, 15:27
Add this line in your .pro file. You will need to add it only once and it will work every time you qmake your project.