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

QML 'this' property binding is broken

    XMLWordPrintable

Details

    • Windows

    Description

      Button {
      property var on_clicked: function()

      { console.log( this ) }

        onClicked: on_clicked()
      }

      only works for the first click.

      The second and all following give an empty object for 'this'.

      With 5.12.1 everything was fine.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              bjoern.thiel Bjoern Thiel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes