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

After QML breakpoint has been hit, the inspector stops working

    XMLWordPrintable

Details

    • 421a66b1019649e6e1a7709042cc7a9e5eaeca55

    Description

      Consider the following QML:

      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Window {
          id: rootRect
          width: 300
          height: 300
          visible: true
      
          Rectangle {
              id: ball
              width: 20
              height: 20
              color: "Lime"
      
              anchors.verticalCenter: rootRect.verticalCenter
      
              property bool flag: false
      
              SequentialAnimation {
                  running: true
                  loops: Animation.Infinite
                  NumberAnimation {
                      target: ball
                      property: "x"
                      from: 0
                      to: rootRect.width
                      duration: 3000
                  }
                  ScriptAction { script: ball.flag = false }
              }
      
              onXChanged: {
                  if (x >= 150 && !flag) {
                      console.log("Center")
                      flag = true
                  }
              }
          }
      }
      

      Execute the application in QML debugging mode and observe that while the application is running you can inspect it via the l&e view. There is a "rootRect" object you can expand. Now set a breakpoint on console.log("Center") and wait until it hits. Remove the break point and continue. After that, the "rootRect" is gone from the l&e view.

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              ulherman Ulf Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes