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

Qt Controls 2.0: ComboBox doesn't load properly with async set to true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.1, 5.7.0 Beta
    • 5.6.0
    • None
    • - Windows 7, x86_64
      - Qt 5.6.0 MinGW 32bit, final release
    • c59c43bbc44026a508746b1de2505f6185bd0310

    Description

      ComboBox in Qt Controls 2.0(labs) doesn't show the selected item after being loaded with asynchronous: true and trying to select the first item doesn't help, just after selecting any other item it starts working properly again.
      I also observed that with QtQuick.Controls 1.4, the ComboBox will show the elements as radio buttons...

      Here is a short code snipet to test this:

      import QtQuick 2.6
      import QtQuick.Window 2.0
      
      import Qt.labs.controls 1.0
      
      ApplicationWindow {
          visible: true
          width: 320
          height: 240
          title: qsTr("Test async")
      
          Loader {
              asynchronous: true
              anchors.centerIn: parent
      
              sourceComponent: ComboBox {
                  model: ["First", "Second", "Third"]
                  anchors.centerIn: parent
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              lilian.moraru Lilian A. Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes