diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-07-11 10:58:16 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-11 16:55:42 +0200 |
commit | c3741b6e04f2d4dd21748211e3650e3cf6830435 (patch) | |
tree | 7c75a0cadb9f6295d0d1a71f80e7219d99b94095 /examples | |
parent | 2fac1d95f7094f6ff086e2f8de9c51f6ef1270c4 (diff) |
Window example: delay showing the splash until Component.onCompleted
Otherwise it will have the wrong size on KDE.
Task-number: QTBUG-32223
Change-Id: I3ed92ff8aead5c6e5a37a5189c7103a5383087ae
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/window/Splash.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/window/Splash.qml b/examples/quick/window/Splash.qml index c981bd2585..995e264f8b 100644 --- a/examples/quick/window/Splash.qml +++ b/examples/quick/window/Splash.qml @@ -44,9 +44,6 @@ import QtQuick.Window 2.1 //! [splash-properties] Window { id: splash - visible: true - width: splashImage.width - height: splashImage.height color: "transparent" title: "Splash Window" modality: Qt.ApplicationModal @@ -58,6 +55,8 @@ Window { x: (Screen.width - splashImage.width) / 2 y: (Screen.height - splashImage.height) / 2 //! [screen-properties] + width: splashImage.width + height: splashImage.height Image { id: splashImage @@ -76,4 +75,5 @@ Window { } } //! [timer] + Component.onCompleted: visible = true } |