Hello Guys,
I'm trying to use QNetworkRequest into my application, here's my code.
Test.pro
PHP Code:TEMPLATE = app
TARGET = Test
QT += core \\
gui \\
network
HEADERS += Test.h
SOURCES += Test_reg.rss \
main.cpp \
Test.cpp
FORMS += Test.ui
RESOURCES +=
symbian:TARGET.UID3 = 0xE06920F2
Test.h
PHP Code:#ifndef TEST_H
#define TEST_H
#include <QtGui/QDialog>
#include <QNetworkRequest>
#include "ui_Test.h"
class Test : public QDialog
{
Q_OBJECT
public:
Test(QWidget *parent = 0);
~Test();
void uploader();
private:
Ui::TestClass ui;
};
#endif // TEST_H
Test.cpp
When I try to build the application, i'm receiving a undefined reference to `QNetworkRequest::QNetworkRequest()' in the line QNetworkRequest netR;PHP Code:
#include "Test.h"
Test::Test(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
}
Test::~Test()
{
}
void Test::uploader()
{
QNetworkRequest netR; // Here fails
}
I'm using 4.5.2-garden release. Any help please?
Thanks.



