Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.5.0, 6.5.6, 6.6.2
Description
Custom property access denied to due to potential undefined access, for example when trying to assign a custom property to a string, got warning:"Cannot assign potential undefined to QString of (component in with type QString [compiler]"
Snippet to reproduce the issue:
import QtQuick Window { id: window width: 640 height: 480 visible: true title: qsTr("Hello World") property ListModel myList: ListModel { ListElement { effect: "active" } } property string effectState Component.onCompleted: { effectState = myList.get(0).effect } }