From c3741b6e04f2d4dd21748211e3650e3cf6830435 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 11 Jul 2013 10:58:16 +0200 Subject: [PATCH] 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 --- 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 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 } -- 1.7.2.5