Mayank
Mayank

Reputation: 1139

Error in inclusion of <QtNetwork> in cpp file of a BB10 app development

I am currently working on BB10 app development.

I was trying out some demo apps given in Blackberry's Developer Portal.

I am currently working on an app based on HTTP Communication.

When I build the project it gives an error fatal error: QtNetwork: No such file or directory.

Also in the cpp file is giving a ? in front of inclusion statement #include <QtNetwork> saying Unresolved Inclusion : <QtNetwork>

Can anyone help me out in resolving this issue ?

Upvotes: 0

Views: 522

Answers (1)

Benoit
Benoit

Reputation: 1921

QtNetwork is a module, not a class to import. Write for exemple:

#include <QNetworkAccessManager>

Upvotes: 2

Related Questions