Thank you so much, Richard. 

The line "QTPLUGIN += qtsensors_ios" was missing in my .PRO files.

Now, everything is working perfectly! 

Best Regards,

Cezar.



----- Original Message -----
From: "Gustavsen Richard" <richard.gustav...@digia.com>
To: "Cezar Menezes" <ce...@hxgt.com.br>, interest@qt-project.org
Sent: Tuesday, November 26, 2013 9:03:04 AM
Subject: SV: QSensor class with iOS

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&#229; 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