Qml network can't work on device?
-
What kind of device is it?
If it is symbian you will need the networking capability set.
-
I use N8 device.
when I launch the application,will use wlan or cmnet to connect network,but have no result.
-
Add NetworkServices Capability ,but not load the remote picture.BTW,my device could connect the internet correctly.
-
The above application example works fine on my N8, though you do need the NetworkServices capability if you're using Qt 4.7.1. From the upcoming Qt 4.7.2 onwards NetworkServices will be automatically appended to Symbian Qt applications that use declarative or webkit.
Are you able to use networking on other Qt applications like weatherinfo demo? The demo can be found under Qt subdirectory demos\embedded\weatherinfo.
-
Thanks everyone.
I study qml with rssnews demo in demos\declarative\rssnews example,and modify that project to Symbian c++ project,it could run and download the pictures and texts from remote server(yahoo server) on pc with Qt Creator IDE.But when I compile and make a sisx to install on N8,it could launch the app,but can't download pictures and texts.
Because of that,I doubt something wrong with qml download remote resouces,so I did this simple test.Unfortionally,it has the same issuse with Rssnews demo.
-
@sujun.deng hi, i run into the same problem, did you get the solution?
-
Andre, i did add
@TARGET.CAPABILITY = NetworkServices Location ReadUserData WriteUserData@
But I can download files using QNAM, what i dont understand is that : what's the difference between QNAM and default QNAM for QDeclarativeEngine.
You could find my thread having the similar problem "here":http://developer.qt.nokia.com/forums/viewthread/5639