-
QT network module
Hi,
I am testing the network module on QT. I realized a simply application on my linux desktop then I compiled it (without problems) for my E51, the application run but not appear the request to enable the wireless connection like with python scripts ... so the http.get fails.
Thank you :)
-
Re: QT network module
Hello, it definitely should ask you to select access point. In fact it should ask you that several times due to issues in Open C.
Anyways, e51.. what Open C version you are using ? You should download the latest and install that to the phone. With Qt the never Open C version the better, esp. for networking.
-
Re: QT network module
Hi,
I installed the version provided with QT demos (pips_nokia_1_3)
I also try to open the browser and navigate (to activate my wireless connection) put in background the browser, open my application and see if connection work but nothing ... :confused:
[B]Edit:[/B] also with the version provided with PyS60 1.9: pips_nokia_1_4_SS.sis the connection not work.
-
Re: QT network module
That is weird. 1.04 should work.
Did the FTP example from FluidLauncher demo work or does it fail to connect as well ?
I don't have E51 handy so can't test this. I'm assuming that if you can get a connection with Python then the Open C part should be ok for non SSL connections.
Are you trying to connect with QHttp or are you using sockets directly?
-
Re: QT network module
[QUOTE=jakoskin]
Did the FTP example from FluidLauncher demo work or does it fail to connect as well?
[/QUOTE]
FTP example from FluidLauncher have a problem with the input box on my phone brings only digits plus * and #. If I try to connect to the default server (ftp.trollteach.com) the system pop up the connections list (like with pys60), the server not exist so the connection fail but the the program try to connect.
[QUOTE=jakoskin]
Are you trying to connect with QHttp or are you using sockets directly?[/QUOTE]
[CODE]
void Window::printConsole()
{
http = new QHttp(this);
connect(http, SIGNAL(done(bool)), this, SLOT(fineRichiesta()));
http->setHost("www.debian.org");
http->get("/index.html");
}
void Window::fineRichiesta()
{
QByteArray page = http->readAll();
box->addTxt(page);
//qDebug() << page;
}
[/CODE]
Thank you for your time jakoskin ;)
-
Re: QT network module
Perhaps the problem is here:
[CODE]
C:\S60\nettest>abld build gcce udeb
...
C:\S60\nettest>createpackage nettest_gcce_udeb.pkg
Processing nettest_gcce_udeb.pkg...
Created nettest_gcce_udeb.SIS
Successfully created nettest_gcce_udeb.sisx (Self signed)[/CODE]
[B]createpackage[/B] need some extra options to allow the usage of the network?
Thank you.
-
Re: QT network module
So it actually is an capability issue.
You set the NetworkServices capability in .pro file of your project by adding following line:
[code]
symbian:TARGET.CAPABILITY="NetworkServices"
[/code]
To verify that the line was correct you can grep generated .mmp file after running qmake. somewhere it should say:
[code]
CAPABILITY NetworkServices
[/code]
After that you need to rerun bldmake bldfiles,abld build .. and finally recreate your package.
Phone should ask when you install the sis - file if you want to"allow xxx-app to access network".
Hope this helps :)
-
Re: QT network module
Hi,
I did as you suggest Jakoskin, now the system ask me which connection I will use :). There is a strange things, the system ask me 3 time which connection I will use before use it ... (with Python or the browser after the first selection all work fine).
Thank you Jakoskin for the help ;)
-
Re: QT network module
[QUOTE]There is a strange things, the system ask me 3 time which connection I will use before use it[/QUOTE]
Yes, that's a known bug. :)
I'm sure it will be fixed before the official release is out.
Mark