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

QQmlEngine::retranslate() causes incorrect property change

XMLWordPrintable

    • All

      Create a property with an empty JS object, like so:

      property var test: ({})

      Assign some values, like so:

      Component.onCompleted: test.property = 0

      Trigger QQmlEngine::retranslate(), which will cause 'test' to be set to an empty object again.

      I've attached an example to reproduce the issue.

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

            ulherman Ulf Hermann
            mleutelt Martin Leutelt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes