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. Transition Camera state without blocking GUI
Forum Updated to NodeBB v4.3 + New Features

Transition Camera state without blocking GUI

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 436 Views 1 Watching
  • 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
    DigitalPioneer
    wrote on 18 Nov 2014, 15:15 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? I can call out to C++ if necessary, but I'd rather avoid that as I am otherwise managing the camera completely from QML. Thanks. :)

    1 Reply Last reply
    0

    1/1

    18 Nov 2014, 15:15

    • Login

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