PDA

View Full Version : Qt4 XML usage



kandalf
21st November 2006, 21:11
Hi guys, I'm having troubles with XML. Following Qt docs I included QDomDocument and then create an object of that class:


domDoc = new QDomDocument();


I added:


QT+=xml


But, when I run qmake && make I got the followin error:


GXYParser.cpp:22:24: QDomDocument: No such file or directory


What am I doing wrong?

Thanx a lot in advance.

kandalf
21st November 2006, 21:18
Nevermind, as usual, I figure it out right after posting, sorry.

I needed to include <QtXml/QDomDocument>