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

Qt6 QML Multimedia camera example code invalid syntax

    XMLWordPrintable

Details

    • All
    • 44cd259ef2dfa7fd5b4b1899ee3c6e0c7cc45161 (qt/qtmultimedia/dev) 2c25b4fe32960beda493f92f18597b7b71070a57 (qt/qtmultimedia/6.2)

    Description

      QML camera example code in the documentation has an issue where it tries to initialize the camera with a device, but there is no "device" field. There is a "cameraDevice" field that is likely the desired property to be set. The snippet that has issues is copied below:
      camera: Camera

      { device: mediaDevices.defaultVideoInput }

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            patrickgroh Patrick Groh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes