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

[Reg 6.2 -> 6.3] QML MediaDevices elements not displayed in ComboBox

    XMLWordPrintable

Details

    • Windows
    • d0c7c7234c (qt/qtdeclarative/dev) d0c7c7234c (qt/tqtc-qtdeclarative/dev) 3359cfcae0 (qt/qtdeclarative/6.3) 3359cfcae0 (qt/tqtc-qtdeclarative/6.3) 3359cfcae0 (qt/tqtc-qtdeclarative/6.3.1)

    Description

      Element text description of MediaDevices such as audioOutputs are not displayed in the dropdown menu of the ComboBox element when using the textRole selector. This works fine when declaring a delegate.

      The minimal example is below. The last working version I can confirm was 6.2.2.

      import QtQuick
      import QtMultimedia
      import QtQuick.Controls
      
      Window {
          id: root
          width: 640
          height: 480
          visible: true
      
          MediaDevices { id: mediaDevices }
      
          ComboBox {
              height: 40
              model: mediaDevices.audioOutputs
              displayText: currentValue.description
              textRole: "description"
          }
      }
      
      

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            piotr Piotr Srebrny (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes