I have created simple Qt Quick 2 project. I want to access gyroscope.
import QtQuick 2.1
import QtSensors 5.0
Rectangle {
id: root
color: "black"
GyroscopeReading {
onXChanged: {
}
onYChanged: {
}
onZChanged: {
}
}
}
In .pro file I added 'QT += sensors'.
My application doesn't work. I see white screen. In the application output I see 'module "QtSensors" plugin "declarative_sensors" not found'
What am I doing wrong?
Thanks!