Qt for Symbian Self FAQ 更新ing

第一次吃螃蟹总有问题,Qt for Sybiam也是一个新的技术手段,总碰到些莫名的小问题,今天开始做个自问自答得FAQ,方便查找。

1. Q:程序有网络申请或是本地数据读写需求,程序桌面应用没有问题,下载到手机上没有生效?
A:需要考虑在.pro文件加入TARGET.CAPABILITY属性信息 
In Symbian OS you use capabilities to define your application's level of trust. The capabilities can be set in your project file with the TARGET.CAPABILITY variable. If this variable has no value, the default value None is used.

The following example shows the setting of a number of capabilities:
TARGET.CAPABILITY = LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData

P.S. The QtNetwork module provides classes to make network programming easier and portable.
To include the definitions of the module's classes, use the following directive:
 #include <QtNetwork>
To link against the module, add this line to your qmake .pro file:
 QT += network

你可能感兴趣的:(移动开发,问题,FAQ,qt,Symbian)