Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96652

QML VideoOuput cannot be used directly with QML Camera

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.0 RC
    • Fix Version/s: 6.2.0
    • Component/s: Multimedia
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      f78c3885cc17c89d27b9e657fa4422ea9134d8c1 (qt/qtmultimedia/dev) f51cbe3c64c6991fdef0335ba346688b0c2f72af (qt/qtmultimedia/6.2) 36daede2669b1e07b05dea4c3941252490ab67e0 (qt/qtmultimedia/6.2.0)

      Description

      The Camera QML type documentation states that a VideoOutput component can be used to render the camera stream by setting the camera as source property.

      However, the VideoSource component doesn't have any source property anymore in Qt6-6.2, which makes the sample code incorrect.

      The following code just doesn't work.

      import QtQuick
      import QtMultimedia
      
      Window {
          width: 300
          height: 300
          visible: true
      
          Camera {
              id: camera
          }
      
          VideoOutput {
              anchors.fill: parent
              source: camera
          }
      }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            c.lorquet Cyril Lorquet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes