aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-01-10 10:29:38 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-01-23 13:56:13 +0000
commit72cfdac50b752b8f2d45929265cf4f09cb990bd2 (patch)
tree00d33e0aa3919af657e9b41004ca3f8aa0cfcad6 /examples
parent5575226f6b25bcf507c3412677756e07ce671cef (diff)
Add PathItem.status to report async processing progress
Change-Id: I09ccdf9c542ebca56187284a0d1776b64c98bfe8 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/pathitem/content/item17.qml22
1 files changed, 17 insertions, 5 deletions
diff --git a/examples/quick/pathitem/content/item17.qml b/examples/quick/pathitem/content/item17.qml
index 88e43175b5..0197aa5fb6 100644
--- a/examples/quick/pathitem/content/item17.qml
+++ b/examples/quick/pathitem/content/item17.qml
@@ -53,11 +53,23 @@ import QtQuick 2.9 // to get PathItem
Rectangle {
color: "lightGray"
- Loader {
- id: pathItemLoader
+ Item {
anchors.fill: parent
- source: "tiger.qml"
- asynchronous: true
- visible: status == Loader.Ready
+
+ Text {
+ anchors.centerIn: parent
+ text: "Loading"
+ // Phase #1: Loader loads tiger.qml. After this we have our item.
+ // Phase #2: With some backends (generic) the item will start async processing. Wait for this too.
+ visible: pathItemLoader.status != Loader.Ready || pathItemLoader.item.status === PathItem.Processing
+ }
+
+ Loader {
+ id: pathItemLoader
+ anchors.fill: parent
+ source: "tiger.qml"
+ asynchronous: true
+ visible: status == Loader.Ready
+ }
}
}