Re: [Interest] QML: onLoaded signal for QQuickWindow or QQmlApplicationEngine

2015-01-12 Thread Dmitry Volosnykh
Then you may try to expose some C++ class which has some slot (See Integrating QML and C++ ). This slot can be called from Component.onCompleted. On Mon, Jan 12, 2015 at 9:32 AM, Dmitry Volosnykh < dmitry.volosn...@gmail.com> wrote: > Try to

Re: [Interest] QML: onLoaded signal for QQuickWindow or QQmlApplicationEngine

2015-01-11 Thread Ruslan Moukhlynin
Yes, I know about Component.onCompleted but I need to do that in C++ part. Let's say I cannot modify QML data - all I need is to load it and make screenshot of loaded data. Btw, Component.onCompleted also not works. I guess at this moment, whet this event triggers, some data isn't ready yet.

Re: [Interest] QML: onLoaded signal for QQuickWindow or QQmlApplicationEngine

2015-01-11 Thread Dmitry Volosnykh
Try to do that inside Component.onCompleted handler. Note that, however, if you use images located remotely, then you should wait them to be loaded. On Jan 12, 2015 9:17 AM, ruslan wrote: > > Hello all! > Is there any way to know when QML data was loaded into engine? > In my QML app I want to ma

[Interest] QML: onLoaded signal for QQuickWindow or QQmlApplicationEngine

2015-01-11 Thread ruslan
Hello all! Is there any way to know when QML data was loaded into engine? In my QML app I want to make a screenshot after all the source was loaded. QQmlApplicationEngine engine; engine.loadData(data); QQuickWindow *rootObject = qobject_cast(p_engine.rootObjects().first()); QImage image = rootOb