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

Outline View: Always show QML IDs at the objects' root node

    XMLWordPrintable

Details

    Description

      See https://doc.qt.io/qtcreator/creator-outline-view.html

       

      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"
          }
      }
      

       

      Current output
      When we collapse an item, we can no longer differentiate it from siblings of the same type:

       

      Suggested output
      Ensure that the ID is always visible, whether collapsed or not:

       

      Notes

      • If we uncheck "Show All Bindings", then the view is very similar to the suggested Collapsed view
      • A QML ID is not a property anyway, so it shouldn't be treated as one

      Attachments

        1. qtc-outline-current.png
          18 kB
          Sze Howe Koh
        2. qtc-outline-suggested.png
          16 kB
          Sze Howe Koh
        3. Screenshot from 2025-01-28 11-56-39.png
          76 kB
          Dmitrii Akshintsev

        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:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes