Have you added the following to your pro file:
QT += sensors
QTPLUGIN += qtsensors_ios

Regards,
Richard
________________________________________
Fra: interest-bounces+richard.gustavsen=digia....@qt-project.org 
[interest-bounces+richard.gustavsen=digia....@qt-project.org] på vegne av 
Cezar Menezes [ce...@hxgt.com.br]
Sendt: 16. november 2013 23:58
To: interest@qt-project.org
Emne: [Interest] QSensor class with iOS

Hello, everyone.

Has any of you succeeded while using QSensor class (or its wrapped classes, 
such as QAccelerometer or QCompass) with iOS?

In my tests, QSensor class seems to fail when running on iOS devices (with Qt 
5.2.0-beta1). I’ve tried several simple test Apps for instantiating and 
detecting sensors on several devices (iPhone and iPad), with different versions 
of XCode (4.6.3 and 5.0.1) and iOS (iOS5 , iOS6 and iOS7).

QSensor::sensorTypes() should return a list of available sensors but, instead, 
returns an empty list. As there aren’t sensors available, QSensor::start() 
always returns false (failing to start any sensor).

Any feedback from you would be very much appreciated.

Best Regards,

Cezar Menezes
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to