[Qt-qml] Showing animated progress while loading large QML files
Pelle Johnsen
pelle.johnsen at gmail.com
Wed Jan 12 18:26:15 CET 2011
Thanks for the suggestion, as mentioned I've managed to encapsulate the
'heavy' QML in a Loader and thus display a static loading screen (an image
an the text 'Loading ...').
However I want to show an animated spinner, or similar to let the end user
know the app is still alive (ideally I would like to show a progress bar).
The problem is that when the Loader starts loading the rest of the QML it
freezes up the whole ui thread, so it's impossible to refresh the screen
with any progress info or even just run an animation. The QML files are
loaded from a resource file (.RCC) if it makes any difference.
On Wed, Jan 12, 2011 at 6:18 PM, Yuvraaj Kelkar <yuvraaj at gmail.com> wrote:
> Just a thought, don't know if it will work for you:
> Is it possible for you to begin loading the sub-qml in an Item with
> opacity:0 while you show a Rectangle (opacity:1) with Text?
> Then once you get the signal that the sub-QML is loaded,
> PropertyChanges can switch opacities.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110112/1bf00cbf/attachment.html
More information about the Qt-qml
mailing list