为什么给qml对象Wui的属性text赋值不成功

function createWord(x1,color1,name1){
     if(gameArea.component==null){
            gameArea.component=Qt.createComponent("Wordui.qml");
        }

        var Wui;
        if(gameArea.component.status==Component.Ready){
            Wui=gameArea.component.createObject(gameArea,{"y":10});
            Wui.x=x1;//出错
            Wui.color=color1;//出错
            Wui.wordstring=name1;//出错
            count++;

 }
}
    出错信息:Error: Cannot assign [undefined] to double
    为什么给qml对象Wui的属性text赋值不成功

请问问题解决了吗,我也遇到了这个问题