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

JScript Locals and Watchers show 'this [QObject]'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 2.2.0
    • Quick / QML Support

    Description

      import QtQuick 1.0
      
      Rectangle {
          width: 360
          height: 360
          Text {
              text: "Hello World"
              anchors.centerIn: parent
          }
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  var i = parent.width;
                  f(i);
              }
          }
          function f(ii) {
              var x = ii;
              console.log("H");
          }
      }
      

      Setting a breakpoint in the function f() shows the variables ii, x, and " 'this' [QObject] Object ". Later one shows only '<no initialized data>' if expanded. Can we display a bit more, or alternatively filter it out?

      Attachments

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

        Activity

          People

            cjanssen Christiaan Janssen (Inactive)
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes