Re: [Qt-qml] Find by id.

2010-11-11 Thread michael.brasser
On 11/11/2010, at 9:59 PM, René Hansen wrote: >>> Then I would like to test application logic by sending keypresses and >>> mouseclicks on certain child elements of my application, buttons, inputs >>> etc. >> >> Another thing you might be interesting in looking at is the visual test >> infrastruc

Re: [Qt-qml] Find by id.

2010-11-11 Thread René Hansen
> > Then I would like to test application logic by sending keypresses and > > mouseclicks on certain child elements of my application, buttons, inputs > > etc. > > Another thing you might be interesting in looking at is the visual test > infrastructure (note that it's experimental, there are no

Re: [Qt-qml] Find by id.

2010-11-10 Thread michael.brasser
Hi, On 05/11/2010, at 9:21 PM, ext René Hansen wrote: > On Thu, 2010-11-04 at 23:44 +0100, Brasser Michael > (Nokia-MS-Qt/Brisbane) wrote: >> On 04/11/2010, at 10:26 PM, ext René Hansen wrote: >>> I'd like to be able to find child objects in a QML structure and to do >>> that, I've exposed a new Q

Re: [Qt-qml] Find by id.

2010-11-05 Thread René Hansen
On Thu, 2010-11-04 at 23:44 +0100, Brasser Michael (Nokia-MS-Qt/Brisbane) wrote: > Hi, > > On 04/11/2010, at 10:26 PM, ext René Hansen wrote: > > > I'd like to be able to find child objects in a QML structure and to do > > that, I've exposed a new QML Object with qmlRegisterType, which provides >

Re: [Qt-qml] Find by id.

2010-11-04 Thread michael.brasser
Hi, On 04/11/2010, at 10:26 PM, ext René Hansen wrote: > I'd like to be able to find child objects in a QML structure and to do > that, I've exposed a new QML Object with qmlRegisterType, which provides > me with: > > QObject *QmlUnitTestHelper::getChildById(QObject *parent, QString name) { >

Re: [Qt-qml] Find by id.

2010-11-04 Thread Eduardo Fleury
Hi Rene, I'll let for others to give more implementation detail on that since I'm not very familiar with the code. Meanwhile, may I ask you the rationale behind that? If the purpose is just to set a text label from C++ to Quick, the thing is Quick was thought of with an "upside-down" concept in m

[Qt-qml] Find by id.

2010-11-04 Thread René Hansen
I'd like to be able to find child objects in a QML structure and to do that, I've exposed a new QML Object with qmlRegisterType, which provides me with: QObject *QmlUnitTestHelper::getChildById(QObject *parent, QString name) { return parent->findChild(name); } And in Qml I have something