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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -