Camera stops NFC from working (QML, QT5.12.6)
Unsolved
Mobile and Embedded
-
wrote on 16 Jun 2021, 05:19 last edited by
If I add "Camera" to my qml file NFC stops recognising NFC tags if the target device runs Android11. Android10 seems to work.
That is my code:import QtQuick 2.12 import QtQuick.Window 2.12 import QtNfc 5.12 import QtMultimedia 5.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") NearField { property bool requiresManualPolling: false orderMatch: false onMessageRecordsChanged: { console.log("NFC-LOG: onMessageRecordsChanged") } onPollingChanged: { console.log("NFC-LOG: onPollingChanged") if (!polling && requiresManualPolling) polling = true; //restart polling } Component.onCompleted: { console.log("NFC-LOG: onCompleted") if (!polling) { requiresManualPolling = true; polling = true; } } } //Camera { // id: camera //} }
If I activate the last three lines (Camera) NFC does not recognise tags anymore.
Any idea how to solve that? Seems to be a Qt bug...
-
wrote on 16 Jun 2021, 05:27 last edited by
Same is true for demoproject "corkboards". Add Camera and NFC is dead.
-
wrote on 29 Aug 2021, 19:55 last edited by
Have you found a workaround for this problem?
-
Hi,
I would say this warrants a bug report if there's not one already.