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

v8 signal resolution is not dynamic

XMLWordPrintable

      Following QTBUG-24891, I would expect that overriding a property should result in the on<Property>Changed signal for that property being emitted when the overriding property is changed. This is not the case either with optimized or unoptimized bindings, as demonstrated by:

      main.qml
      import QtQuick 2.0
      
      MyItem {
          property int myprop: 10
          Component.onCompleted: myprop = 20
      }
      
      Unable to find source-code formatter for language: myitem.qml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      import QtQuick 2.0
      
      Item {
          property string myprop: "hello world"
          onMypropChanged: console.log('myprop: ' + myprop)
          //'normal' result:                <no output>
          //QML_DISABLE_OPTIMIZER=1 result: <no output>
      }
      

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

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes