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

Can't access items by id in Debugger Console that are not top level

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.3.0-beta1
    • Qt Creator 4.1.0
    • Debugger
    • None
    • Arch Linux 64-bit
      Qt 5.7.0
    • b9a8bed037c98a4f4ee55e2d372e152e5da10d9e

    Description

      In the Debugger Console, accessing any item by id that is not the top level item results in ReferenceError.

      Example QML:

      import QtQuick 2.5
      import QtQuick.Window 2.2
      
      Window {
          id: window
          visible: true
          width: 640
          height: 480
      
          Text {
              id: message
              anchors.fill: parent
              text: "hello"
          }
      }
      

      Entering the following:

      message.text = "world"
      

      Results in:

      ReferenceError: message is not defined
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-17177
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            net147 Jonathan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes