I created a simple Qt Quick 2 project. I want to access the gyro.
import QtQuick 2.1
import QtSensors 5.0
Rectangle {
id: root
color: "black"
GyroscopeReading {
onXChanged: {
}
onYChanged: {
}
onZChanged: {
}
}
}
In the .pro file, I added "QT + = sensors."
My application is not working. I see a white screen. In the output of the application, I see the "module" QtSensors "plugin" declarative_sensors "not found"
What am I doing wrong?
Thank!
source
share