Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32420

Outline View: Let the "Find" function search QML IDs and property values too

    XMLWordPrintable

Details

    Description

      Code

      import QtQuick
      import QtQuick.Controls.Basic
      
      Window {
          id: root
          width: 800
          height: 600
          visible: true
      
          Button {
              id: btn_start
              text: "Start"
          }
          Button {
              id: btn_pause
              text: "Pause"
          }
          Button {
              id: btn_stop
              text: "Stop"
          }
          Button {
              text: "Anonymous"
          }
      }
      

       

      Steps to test

      1. In Qt Creator, put the code above in the active *.qml file
      2. Open the Outline View (https://doc.qt.io/qtcreator/creator-outline-view.html ) and ensure it has keyboard focus
      3. Press Ctrl+F to open the "Find" bar within the Outline View, and search for various words

       

      Outcomes
      As of QtC 15.0:

      • We get hits if we search for "Window", "Button", "width", and "text"
      • However, we don't get any hits if we search for "root", "btn", "Anonymous"

       

      Workaround
      We could do the search in the Code Editor instead. When the result is found there, the Outline View automatically highlights the corresponding line too. However, this requires switching to a different pane.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes