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

Add SearchField for Qt Quick Controls

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Quick: Controls 2
    • None

    Description

      Add a QQuickSearchField to the list of Qt Quick Controls to make it easier to search from a list of items. The search field would derive QQuickTextField, and have an API that supports searching from a list.

      A potential API could look like this: 

      // the model to search from
      Q_PROPERTY(QQmlInstanceModel *delegateModel READ delegateModel NOTIFY delegateModelChanged FINAL)
      // the delegate item to display for the list entry
      Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
      // popup in which to display the entries
      Q_PROPERTY(QQuickPopup *popup READ popup WRITE setPopup NOTIFY popupChanged FINAL)
      // if auto completion/suggestion should be enabled
      Q_PROPERTY(bool autoSuggest READ autoSuggest WRITE setAutoSuggest NOTIFY autoSuggestChanged FINAL)

      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
            dorisverria Doris Verria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes