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

SearchField's popup opens without interaction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • Quick: Controls 2
    • None

    Description

      The behaviour I'd expect is that the popup only opens when the control is interacted with in some way.

      import QtQuick
      import QtQuick.Controls.Basic
      import QtQuick.Layouts
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
          title: "activeFocusItem: " + activeFocusItem
      
          property ListModel model: ListModel {
              id: fruitModel
      
              ListElement {
                  name: "Apple"
                  color: "green"
              }
              ListElement {
                  name: "Cherry"
                  color: "red"
              }
              ListElement {
                  name: "Banana"
                  color: "yellow"
              }
              ListElement {
                  name: "Orange"
                  color: "orange"
              }
              ListElement {
                  name: "WaterMelon"
                  color: "pink"
              }
          }
      
          SearchField {
              text: "Live SearchField"
              textRole: "name"
              suggestionModel: window.model
          }
      }
      

      Attachments

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

        Activity

          People

            dilek Dilek Akcay
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes