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

        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:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes