Thank you, I compiled qtquick11-stable clone, but it didn't help; I found other workaround, though - if someone would have similar problem (with dynamically created bindings of dynamically created items):
*Firstly I created js stateful lib with declared two variables and assigned some objects to them (no matter what they were, just couldn't be nulls):
@var firstHook = someExistingObject1
var secondHook = someExistingObject2@
*Next I created a wrapper component with my custom Line element including mentioned lib with properties 'startingPoint' and 'endingPoint' binded to these variables:
@import QtQuick 1.0
import Lines 1.0
import "../../js/Curve.js" as CurveFunctions
Line {
id: line
penColor: "red"
penWidth: 2
startingPoint: Qt.point(CurveFunctions.firstHook.x, CurveFunctions.firstHook.y)
endingPoint: Qt.point(CurveFunctions.secondHook.x, CurveFunctions.secondHook.y)
}@
*Then I added two functions to my component which change values of those variables and simulated 1px move back and forth of previous binded objects, so properties could update properly:
@ function setFirst(first) {
CurveFunctions.firstHook = first
someExistingObject1.x += 1
someExistingObject1.x -= 1
}
function setSecond(second) {
CurveFunctions.secondHook = second
someExistingObject2.x += 1
someExistingObject2.x -= 1
}@
and it works. 'someExistingObjects' could have opacity 0.0, or be any accessible objects.
I'm not proud of it, but I wasn't able to figure out some other solution.