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

QMediaFormat enum values are not working in QML

XMLWordPrintable

    • All

      QMediaFormat has multiple enum types, where several identifiers are colliding. Consider the identifier MP3 in the following:

      class QMediaFormat {
          enum FileFormat {
              ...
              MP3,
          };
          enum class AudioCodec {
              ...
              MP3,
          };
      };
      

      In QML, this is exposed as "MediaFormat.MP3". This makes it ambiguous which value applies. When trying to access this value from QML, the result is an undefined value.

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

            qtqmlteam Qt Qml Team User
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes