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

QCamera is missing several reset-functions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Multimedia
    • None
    • All
    • 6fc0f34a3 (dev)
    • Multimedia Next Next

    Description

      The QCamera API is missing several resetX() methods for most properties, this includes the corresponding QML bindings. For most properties, this is not directly a problem because the default value is a literal value and is documented. This is also not necessarily a problem from a C++ point of view, where other default values are just default-constructed classes.

      It is somewhat problematic in QML, because you cannot create a default-constructed QCameraDevice or QCameraFormat in QML. This means you effectively cannot choose to go back to choosing default device if you ever choose something that is not default device.

      For consistency I believe we should expose all the resetProperty() methods and have corresponding QML bindings. An initial fix would involve only doing so for properties where the default-value cannot be specified in QML.

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes