c++ - Error in inclusion of <QNetworkAccessManager>,<QNetworkReply> in cpp file of a BB10 app development -
i working on bb10 app development , trying http connection demo app.
but in cpp file giving ? in front of inclusion statement #include <qnetworkaccessmanager> saying unresolved inclusion : <qnetworkaccessmanager>.
anyone please me.
thanks in advance.
qnetworkaccessmanager comes qtnetwork module. this: #include <qtnetwork/qnetworkaccessmanager>, should compile. however, not link, need link qtnetwork. achieve this, should tell qmake you're using qtnetwork. add .pro project file: qt += network.
this has 2 effects: first, compiler include files in qtnetwork subdirectory (so don't need include <qtnetwork/qnetworkaccessmanager>, <qnetworkaccessmanager> work fine). secondly, linker link qtnetwork too. work fine.
you can read more using qt modules here.
Comments
Post a Comment