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

ComboBox display empty list after model change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.6.0 Beta
    • Quick: Controls 2
    • None
    • Mageia Linux Cauldron x86_64, gcc 5.3
    • 29a75074abcd452185e82623cf927d9be6a4d1b8

    Description

      If I change model of the combobox, after click on it I see empty list (see attachment).

      Test program:

      import QtQuick 2.5
      import Qt.labs.controls 1.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          ComboBox {
              id: comboBox
      
              anchors.centerIn: parent
              model: [
                  "111",
                  "222",
                  "333"
              ]
          }
      
          Button {
              anchors.bottom: parent.bottom
              anchors.horizontalCenter: parent.horizontalCenter
              text: "Change Model"
              onClicked: comboBox.model = [ "444", "555", "666" ]
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes