[SailfishDevel] QAccelerometer availability ?

Mike Sheldon mike at mikeasoft.com
Sun Jan 12 15:44:38 UTC 2014


On Sun, 2014-01-12 at 11:49 +0100, Franck Routier (perso) wrote:
> Hi,
> 
> I'm still stuck with this. Back to the basics...
> 
> In my qml, I have added:
> 
> import QtSensors 5.0 and used Accelerometer.
> 
> Fine. But On deployment, I get an error: module "QtSensors" is not installed
> 
> I think I have to edit something in my .pro file: I tried
> CONFIG += qt5-qtsensors
> 
> but it didn't work.
> 
> Maybe I should also make changes in the rpm yaml, although I think as it
> is available by default, I shouldn't.

If you're using it from QML you'll need to depend on
qt5-qtdeclarative-import-sensors (I'm not sure if it's installed by
default, but your error would suggest probably not).

Cheers, 
Mike.




More information about the Devel mailing list