[Qt-qml] Avoid binding warnings on object creation

Leonardo Cunha leo.cunha at nokia.com
Thu Sep 2 17:53:27 CEST 2010


hi,

I am using the Component::createObject(parent) and inside the component I
have bindings to its parent, like:
Item {
    id: page
    // FIXME: the line below creates warnings when the page component is
instantiated
    width: parent.width
}

I get these warnings when instantiating the page: "Unable to assign
undefined value"

Is there any workaround for avoiding these binding's warnings when
instantiating a dynamic object?

br,
leo
--
Leonardo Cunha
Software Engineer
Nokia, Qt





More information about the Qt-qml mailing list