File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ ProjectScene {
29
29
engine: loader .engine
30
30
stageScale: (stageWidth == 0 || stageHeight == 0 ) ? 1 : Math .min (width / stageWidth, height / stageHeight)
31
31
onFileNameChanged: priv .loading = true ;
32
+ onLoaded: priv .loaded = true
33
+ onFailedToLoad: priv .loaded = false
32
34
33
35
function load (fileName ) {
34
36
loader .fileName = fileName;
@@ -37,6 +39,7 @@ ProjectScene {
37
39
QtObject {
38
40
id: priv
39
41
property bool loading: false
42
+ property bool loaded: false
40
43
}
41
44
42
45
ProjectLoader {
@@ -111,7 +114,7 @@ ProjectScene {
111
114
anchors .top : parent .top
112
115
width: stageWidth * stageScale
113
116
height: stageHeight * stageScale
114
- color: priv .loading ? " transparent" : " white"
117
+ color: priv .loading || ! priv . loaded ? " transparent" : " white"
115
118
clip: true
116
119
117
120
RenderedTarget {
You can’t perform that action at this time.
0 commit comments