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

v4 and v8 resolve root object properties differently

XMLWordPrintable

      The following files demonstrate the problem. In this case the v4 behavior is what I expected to see.

      main.qml
      import QtQuick 2.0
      
      MyItem {
          property int myprop: 10
      }
      
      MyItem.qml
      import QtQuick 2.0
      
      Item {
          property string myprop: "hello world"
          property string result: myprop
          Component.onCompleted: console.log(myprop + " " + result)
          //'normal' result:              10 hello world
          //QML_DISABLE_OPTIMIZER result: 10 10
      }
      

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

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            brasser Michael Brasser (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes