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

Editable ComboBox doesn't clear the selection

    XMLWordPrintable

Details

    • 5bd799a39d (qt/qtdeclarative/dev) 5bd799a39d (qt/tqtc-qtdeclarative/dev) a46d508ef0 (qt/qtdeclarative/6.3) a46d508ef0 (qt/tqtc-qtdeclarative/6.3) a46d508ef0 (qt/tqtc-qtdeclarative/6.3.1) 2ab284146d (qt/tqtc-qtdeclarative/6.2)

    Description

      When trying to use autocompletion to input an item into the ComboBox input field which is contained in the model, it fails to clear the selection when it is written according to the model (starting with uppercase vs. lowercase). Have a look at the attached gif.

      The model contains Banana, Apple, Coconut, and small.

      • When the user enters app (with lowercase) and presses enter, the ComboBox will clear the selection.
      • When the user enters App (with uppercase) and presses enter, the ComboBox won't clear the selection. This looks if it won't accept the input.
      ComboBox {
          editable: true
          model: ListModel {
              id: model
              ListElement { text: "Banana" }
              ListElement { text: "Apple" }
              ListElement { text: "Coconut" }
              ListElement { text: "small" }
          }
      }
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            henning Henning Gründl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes