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

QQmlEngine::retranslate() causes incorrect property change

    XMLWordPrintable

Details

    • All

    Description

      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.

      Attachments

        1. qmlengine_retranslate_bug.tar.gz
          1 kB
          Martin Leutelt
        2. qtbug_70372.zip
          3 kB
          Tuomas Vaarala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes