From: Shawn Rutledge Date: Thu, 11 Jul 2013 08:58:16 +0000 (+0200) Subject: Window example: delay showing the splash until Component.onCompleted X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c3741b6e04f2d4dd21748211e3650e3cf6830435;p=konrad%2Fqtdeclarative.git 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 --- diff --git a/examples/quick/window/Splash.qml b/examples/quick/window/Splash.qml index c981bd2..995e264 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 }