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. Camera in QML, init and start will block the UI thread
Forum Update on Monday, May 27th 2025

Camera in QML, init and start will block the UI thread

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

    I'm writing an application with a QML UI, which uses the system's camera. I'm using the QML Camera type to access the camera, and that's all working pretty well; however, I would like to turn off the camera when I'm not using it, and it seems that the proper way to do this is to set Camera.state or call Camera.stop(). Unfortunately, both of these operations seem to cause a ~100ms synchronous operation which blocks the GUI, which is unacceptable for me.

    Does anyone know how I can turn off the camera without blocking the UI thread?

    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