maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QT SDK Update for Mobility? (https://talk.maemo.org/showthread.php?t=53820)

mnieminen 2010-06-26 17:30

Re: QT SDK Update for Mobility?
 
Anyone tried the QAccelerometer class? For me the sensor fails to start in simulator..

Code:

 
 //Initialize accelerometer
QAccelerometer* accelerometer = new QAccelerometer(this);
bool success = this->accelerometer->start();
qDebug() << success;

The code above outputs false.


All times are GMT. The time now is 01:11.

vBulletin® Version 3.8.8