×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    31

    Symbian device don't show me a network selection window

    I made a simple application which tests network connection with Qt for symbian(NokiaQtSDK 1.0.2). The Following is sources.

    test.pro
    Code:
    ...
    QT       += core gui network
    CONFIG += mobility
    MOBILITY = bearer
    symbian {
        TARGET.UID3 = 0xe9a4be1d
        TARGET.CAPABILITY += NetworkServices
        TARGET.EPOCSTACKSIZE = 0x14000
        TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    }
    test.h
    Code:
    ...
    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();
    };
    ...
    test.cpp
    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;
    }
    ...
    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.
    Why my device don't ask me for selecting access point??

  2. #2
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    Re: Symbian device don't show me a network selection window

    Can you check with giving a path for the QFile *out like:
    out=new QFile("c:\\data\\pic.gif");

    I've tested with 5800xm in which I'm able to see the pic.gif downloaded successfully.

    If still facing issues you can update it to the latest firmware version.

  3. #3
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Symbian device don't show me a network selection window

    Are you on Qt 4.7??
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. network on Symbian device
    By xennon.x in forum [Archived] Qt SDKs and Tools
    Replies: 4
    Last Post: 2010-11-04, 11:13
  2. Mac: Symbian Device target won't show up
    By MatuX in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-10-23, 11:19
  3. how to detect appearance of FEP word selection window
    By tarn in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-05-14, 06:14
  4. Replies: 2
    Last Post: 2008-06-14, 13:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×