-
Bug
-
Resolution: Unresolved
-
P4: Low
-
6.11
-
None
This code
import QtQuick Window { id: window width: 640 height: 480 visible: true QtObject { id: qo } // Item { // id: qo // } Component { id: floatAnimationComponent SequentialAnimation { required property Item target } } Component.onCompleted: animate(qo) function animate(rect) { let floatAnimation = floatAnimationComponent.createObject(window.contentItem, { target: qo }) } }
results in
Could not set initial property target
It could be more specific, similar to the error you get when assigning imperatively after creation:
Could not set initial property target: cannot assign QObject* to QQuickItem*