I made a simple application which tests network connection with Qt for symbian(NokiaQtSDK 1.0.2). The Following is sources.
test.pro
test.hCode:... QT += core gui network CONFIG += mobility MOBILITY = bearer symbian { TARGET.UID3 = 0xe9a4be1d TARGET.CAPABILITY += NetworkServices TARGET.EPOCSTACKSIZE = 0x14000 TARGET.EPOCHEAPSIZE = 0x020000 0x800000 }
test.cppCode:... class Widget : public QWidget { Q_OBJECT public: explicit Widget(QWidget *parent = 0); ~Widget(); private: Ui::Widget *ui; QNetworkAccessManager qnam; QNetworkReply *reply; private slots: void GetFinished(); }; ...
It downloads gif file normally in simulator, while doesn't in symbian device(xm5800). In the device, the message "finished" is displayed but image file is in 0 size.Code:... Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); reply=qnam.get(QNetworkRequest(QUrl("http://www.forum.nokia.com/images/logo-forumnokia.gif"))); ui->label->setText(tr("getting..")); connect(reply,SIGNAL(finished()), this,SLOT(GetFinished())); } void Widget::GetFinished() { QFile *out; out=new QFile("pic.gif"); if(!out->open(QIODevice::WriteOnly)) return; out->write(reply->readAll()); out->close(); ui->label->setText(tr("finished")); } Widget::~Widget() { delete ui; } ...
Why my device don't ask me for selecting access point??



