Connect Qt application to the Internet (Symbian)

I am trying to connect to the Internet from a Symbian phone (S60v3 FP1), but ... not very successfully. When I try to use the application in Qt Simulator, it works - it connects, loads, etc. Perhaps the version of the FP phone is related to the problem - I read somewhere that some changes are happening with FP2. I tried using QNetworkConfigurationManagerand QNetworkSession, but again without success. All I want is to see a list with access points on the phone screen (to select one and the application for a perfect launch) :)

I have included:

#include <QtNetwork>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>

I wrote down the slot:

void someApp::replyFinished(QNetworkReply * pReply)
{
    ...nonsense...   
}

And from the examples I read, this is necessary:

    QNetworkAccessManager *manager = new QNetworkAccessManager(this);

    connect(manager, SIGNAL(finished(QNetworkReply*)),
            this, SLOT(replyFinished(QNetworkReply*)));

    manager->get(QNetworkRequest(QUrl("http://stackoverflow.com/")));

I added (to the .pro file):

QT += network

Not sure if this is necessary, but it is also in the application:

MOBILITY = bearer

What else do I need?

Qt , ( ).

(, , ):)

+3
1

NetworkServices symbian .pro:

symbian: {
...
TARGET.CAPABILITY = "NetworkServices ReadUserData WriteUserData"
...
}

, sis networkervices. symbian nokia, .

+3

Source: https://habr.com/ru/post/1773518/


All Articles