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

Qt Creator does not work with QML debugger as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 13.0.2, Qt Creator 14.0.2
    • Debugger

    Description

      Needs to manually launch the debug session on the command line and connect the QML port on Qt Creator for QML debugging. Otherwise the application launch without waiting for the connection with the QML debugger, the notification widget "Launching QML debugger" keeps loading and never successfully "loaded"

      Snippet to reproduce the issue:

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")    
      
      function toggleRectangle() {
              let currentVisibility = rect.visible
              rect.visible = !currentVisibility
          }    
      
      Rectangle {
              id: rect
              width: parent.width / 2
              height: parent.height / 2
              anchors.centerIn: parent
              color: "lightblue"
          }    
      
      Button {
              anchors.bottom: parent.bottom
              anchors.horizontalCenter: parent.horizontalCenter
              text: "Click"
              onClicked: toggleRectangle()
          }
      } 

       

       

      Attachments

        1. x.png
          x.png
          162 kB
        2. Screenshot_20250610_162321.png
          Screenshot_20250610_162321.png
          173 kB
        3. Debug_Log_right.txt
          22 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            kitruong Kinh Truong
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes