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. Releasing the source of a VideoOutput QML type

Releasing the source of a VideoOutput QML type

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 425 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.
  • P Offline
    P Offline
    Padlock
    wrote on last edited by
    #1

    Is there a simple solution I overlooked for a VideoOutput to release its source again?
    I got a VideoOutput as part of a delegate for exactly one of the delegate elements (model elements) and it works as long as I don't clear the model and rebuild it again.

    It seems to me I got to somehow make VideoOutput release its source.

    Setting the source property to null doesn't work.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Padlock
      wrote on last edited by
      #2

      I "cheated" and packed Camera and VideoOutput in their own Component and used a Loader. A Loader can easily be released by setting its sourceComponent to undefined.

      However, the Camera fails to start up properly every second time. I added a timer to the delegate component that sets sourceComponent of the Loader to undefined and back to the camera every 500 ms until the Camera finally succeeds, provided another timeout is not exceeded, in which case an error is shown.

      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