|
|
2010-07-13
, 08:56
|
|
Posts: 20 |
Thanked: 11 times |
Joined on Feb 2010
|
#2
|
| The Following User Says Thank You to saveas For This Useful Post: | ||
i have been tryin to get myself started with QTMovility sensors qsensors
qacclerometer especially
the following
QAccelerometer *sensor = new QAccelerometer(this); sensor->start(); QAccelerometerReading *reading = sensor->reading(); qreal x = reading->x(); qreal y = reading->y(); QString res=""; ui->lineEdit->setText(res.number(reading->x(),'g',3));"0" as the reading all the time no matter how i hold the phone
this code is part of a slot which activates when i click a pushbutton
zwiik kkaran
CGPA Calculator