I am trying to develop an application which would get the geolocation of user, so import mobility and geolocation into the project, it complies successfully, but when it deploy to devices it shows:
Deploying application to 'Nokia 5800 XpressMusic USB (COM3)'...
Copying install file...
Application running with pid 458.
Process 458, thread 459 stopped at 0x802a12f1: Thread 0x1cb has panicked. Category: Lbs Client Fault; Reason: 6
and following is what i have done:
in .pro file
CONFIG += mobility \
MOBILITY += location
TARGET.CAPABILITY = UserEnvironment NetworkServices Location ReadUserData
in .h file
#include <QSystemInfo> //(1)
in .cpp file
QGeoPositionInfoSource iSource = QGeoPositionInfoSource::createDefaultSource(this);
it can run normally when i hide above code.......