Important: Please read the Qt Code of Conduct -

Camera stops NFC from working (QML, QT5.12.6)

  • 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...

  • Same is true for demoproject "corkboards". Add Camera and NFC is dead.

  • Have you found a workaround for this problem?

Log in to reply