Re: [Qt-qml] Change property of dynamically created component

2010-11-10 Thread shiping.ji
Hi, This explains the case, now we fully understood what was wrong in our approach. Thanks a lot for Michael and Warwick's help. BR, Shiping -Original Message- From: Brasser Michael (Nokia-MS-Qt/Brisbane) Sent: 11 November, 2010 03:43 To: Ji Shiping (Nokia-MS/Espoo) Cc: qt-qml@trollte

Re: [Qt-qml] Change property of dynamically created component

2010-11-10 Thread shiping.ji
Hi, That solves the problem. One more related question, does it mean that dynamically created QML objects (incl. e.g. the one created using QDeclarativeComponent::create()) will not have their id registered? We've noticed the issue that once we load and attach such objects programmatically, fu

Re: [Qt-qml] Change property of dynamically created component

2010-11-08 Thread shiping.ji
Hi, Forgot the attachment, here it comes :) BR, Shiping -Original Message- From: Jones Martin (Nokia-MS-Qt/Brisbane) Sent: 09 November, 2010 01:05 To: Ji Shiping (Nokia-MS/Espoo); qt-qml@trolltech.com Subject: RE: Change property of dynamically created component There's nothing wrong

[Qt-qml] Change property of dynamically created component

2010-11-08 Thread shiping.ji
Hi, We have a QML with two states and one loader component. In "state2", a new component "yellowRectComponent" is created by the loader. In "state3", we'd like to modify this newly created component's properties, but it doesn't seem to work (the new component creation is successful though). Do