Re: [Interest] Finding the root QQuickItem in a QQml(Application)Engine

2015-05-11 Thread Sze Howe Koh
On 11 May 2015 at 23:47, Ben Lau wrote: > > On 11 May 2015 at 21:06, Sze Howe Koh wrote: >> >> Hello, >> >> Is there an analogue of QQuickView::rootItem() for QQml(Application)Engine? >> >> The shortest way I could think of involves jumping through a few hoops, e.g.: >> >> QQmlApplicationEngi

Re: [Interest] Finding the root QQuickItem in a QQml(Application)Engine

2015-05-11 Thread Ben Lau
On 11 May 2015 at 21:06, Sze Howe Koh wrote: > Hello, > > Is there an analogue of QQuickView::rootItem() for QQml(Application)Engine? > > The shortest way I could think of involves jumping through a few hoops, > e.g.: > > QQmlApplicationEngine engine; > // ... > auto window = engine.r

Re: [Interest] Finding the root QQuickItem in a QQml(Application)Engine

2015-05-11 Thread Gunnar Roth
I thought engine.rootObjects().first() would be the root item.     Gesendet: Montag, 11. Mai 2015 um 15:06 Uhr Von: "Sze Howe Koh" An: "interest@qt-project.org" Betreff: [Interest] Finding the root QQuickItem in a QQml(Application)Engine Hello,   Is there an an

[Interest] Finding the root QQuickItem in a QQml(Application)Engine

2015-05-11 Thread Sze Howe Koh
Hello, Is there an analogue of QQuickView::rootItem() for QQml(Application)Engine? The shortest way I could think of involves jumping through a few hoops, e.g.: QQmlApplicationEngine engine; // ... auto window = engine.rootObjects().first(); auto aQuickItem = qobject_cast(window-