[Qt-qml] Simulating QML which needs a long time to load

Alan Alpert alan.alpert at nokia.com
Wed Nov 17 00:28:23 CET 2010


On Wed, 17 Nov 2010 01:39:51 ext Jerzy Chalupski wrote:
> I'm writing an application with several "views", which should be
> loaded dynamically from separate QML files. I already have some basic
> code which utilizes QML Loader element, and right now I'm thinking
> about some "please wait" screen that would be displayed to user when
> requested view takes a long time to load. But to test such code I need
> a QML component which will emit completed signal after a long time.
> What would be a simplest way to do this?

Note that the loader's Loading state is only used when it's waiting for 
something (mainly network traffic). With loading of local elements it will load 
synchronously and so testing with a local element is likely to fail.

Easiest way would be to try and load a QML file over a slow network connection, 
or from a far away server.

-- 
Alan Alpert
Software Engineer
Nokia, Qt Development Frameworks



More information about the Qt-qml mailing list