Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Camera external trigger event is not getting when unplug and again plug the camera
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 357 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.
  • D Offline
    D Offline
    dhu0504
    wrote on last edited by
    #1

    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

    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