Adding libs (QT += ...) didn't work
Installation and Deployment
11
Posts
4
Posters
2.9k
Views
1
Watching
-
hii
Add QT += xml
http://qt-project.org/doc/qt-5/qtxml-index.html -
That's my .pro file:
@TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qtSOURCES += main.cpp
QT += core
QT += xmlINCLUDEPATH += C:/Qt/Qt5.3.1/5.3/mingw482_32/include
@and that didn't work.
I think, that QT can't find the libraries. I tried to add them, but it didn't work. Where can I check if everything is ok?
-
Did you run qmake after you modified the .pro file? If not, run qmake (you can find it in Build menu in Creator) and after that the linker should find the xml module libraries.
And also the include should work without the module name:
@
#include <QFile>
#include <QDomDocument>
//...
@