Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Camera stops NFC from working (QML, QT5.12.6)
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 379 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    UweA
    wrote on 16 Jun 2021, 05:19 last edited by
    #1

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

    1 Reply Last reply
    0
    • U Offline
      U Offline
      UweA
      wrote on 16 Jun 2021, 05:27 last edited by
      #2

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        davidovv
        wrote on 29 Aug 2021, 19:55 last edited by
        #3

        Have you found a workaround for this problem?

        U 1 Reply Last reply 18 Feb 2022, 20:19
        0
        • D davidovv
          29 Aug 2021, 19:55

          Have you found a workaround for this problem?

          U Offline
          U Offline
          UweA
          wrote on 18 Feb 2022, 20:19 last edited by
          #4

          @davidovv Unfortunately not with Qt. I switched to a native app what solves it.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 18 Feb 2022, 20:21 last edited by
            #5

            Hi,

            I would say this warrants a bug report if there's not one already.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved