Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66942

[REG 5.10.1 -> 5.11] Variables in QML not accessible when debugging

XMLWordPrintable

    • 61447075954aab99b3abc9c78294e5966ae3b6ce

      1. Open the Qt Quick Controls 2 Gallery example in Qt Creator.
        It's in Examples\Qt-<version>\quickcontrols2\gallery\gallery.pro
      2. Open ComboBoxPage.qml
        QTCREATORBUG-20004 might get in your way.
      3. Place a breakpoint in the onAccepted-handler:
                    onAccepted: {
                        if (find(editText) === -1)
                            model.append({text: editText})
                    }
        
      4. Let the project run into the breakpoint.
      5. See Creator's "Locals and Expressions" view.
        There are two lines which seem quite useless:

      Instead, "this" should be expandable and then display all the values. When using Qt 5.10.1, this works correctly.

        1. locals.png
          2 kB
          Robert Löhning
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ulherman Ulf Hermann
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes