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

Edited text in ComboBox is initially not shown if it was created with asynchronous Loader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.1
    • Quick: Controls 2
    • None
    • macOS, Windows

    Description

      Edited text is initially empty for combobox that was created with asynchronous Loader in this example code:

      import QtQuick 2.12
      import QtQuick.Controls 2.12
      import QtQuick.Layouts 1.3
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          ColumnLayout {
              Loader {
                  sourceComponent: ComboBox {
                      editable: true
                      model: ["abc", "def"]
                      currentIndex: 0
                  }
              }
              Loader {
                  asynchronous: true
                  sourceComponent: ComboBox {
                      editable: true
                      model: ["abc", "def"]
                      currentIndex: 0
                  }
              }
          }
      }
      
      

      The problem is independent of the controls style that is used and is definitely present in macOS and Windows

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            permotion88 Karol Polak
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes