Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.12.2, 5.13.0 Alpha 1
-
None
-
iOS, on iPhone 7.
-
-
8
-
Qt6_Foundation_Sprint 40, Team 2 Foundation_Sprint 41
Description
I am trying to get the magnetometer readings from iOS, but the data seems to be wrong: the values don't change as I move the phone. It works on android.
Simple qml program to test the issue:
import QtQuick 2.9 import QtQuick.Window 2.2 import QtSensors 5.0 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Magnetometer { id: mag active: true } Text { anchors.fill: parent text: { if (!mag.reading) return "WAIT"; return "M:\n" + mag.reading.x + "\n" + mag.reading.y + "\n" + mag.reading.z; } } }