Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Camera external trigger event is not getting when unplug and again plug the camera



  • I am using Camera qml application. In qml i am writing the below code to get the external trigger key from the camera as follows
    Keys.onReleased: {
    console.log("event.key......................."+event.key)
    if(event.key === Qt.Key_WebCam){
    console.log("key onreleased: Qt.Key_WebCam")
    event.accepted = true
    }

    }
    

    First time i am getting the event. But once unplug again plug the camera the camera key event is not captured.

    It will be very helpful any one give the solution.

    Thanks in advance


Log in to reply