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

Bindings restored after performing setContextProperty on the root context object

    XMLWordPrintable

Details

    Description

      Bindings restored after performing setContextProperty on the root context object

      STEPS TO RECREATE:
      1) Create a new empty QtQuick project
      2) In main.qml defines some properties (e.g. int, string, QtObject, ...) where the r-value must be a valid binding
      3) In main.cpp retrieves the root context from the engine, and set an arbitrary context property (e.g. a string)
      4) Retrieve the root object from the engine and try to set, with setProperty, the properties defined in 1, according to their types
      5) Set another context property in the root context

      EXPECTED VS ACTUAL:
      EXPECTED: All new values set by cpp setProperty remains correctly set
      ACTUAL: All values that were defined with a valid binding (or assigned to another valid binding, see attached code), are restored to the binding value

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            a.micaglio Alessandro Micaglio
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes