add QT += xml in your pro-file and rebuild project.
add QT += xml in your pro-file and rebuild project.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
I get the same error after adding "QT += xml" to my .pro file.
Here is my .pro:
Qt Code:
TARGET = IconView TEMPLATE = app SOURCES += main.cpp \ widget.cpp \ HEADERS += widget.h \ FORMS += widget.ui \ RESOURCES += res.qrc Qt += xmlTo copy to clipboard, switch view to plain text mode
Have you truly/complete rebuilded your project? Try #include <QtSql> instead, same error? Have you build aour At installation with Xml support?
Ok, compiling in QtCreator , both #include <QXmlSimpleReader> and #include <QtSql> work. But now what about #include <QtXmlPatterns>? It doesnt work. Gives me the same error.
.pro:
Qt Code:
TARGET = IconView TEMPLATE = app SOURCES += main.cpp \ widget.cpp HEADERS += widget.h FORMS += widget.ui RESOURCES += res.qrc QT += xml QT += sqlTo copy to clipboard, switch view to plain text mode
Ok, thanks for the help! Problem solved!
Bookmarks