<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Splash screen won&#x27;t go away when the animation has completed.]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I tried to add a basic splash screen to my app after a lot of messing about i got it kinda working.</p>
<p dir="auto">It has decided it won't bugger off and reveal the Webview, although it is still functioning behind the white screen.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/import">@<bdi>import</bdi></a> QtQuick 1.0<br />
import com.nokia.symbian 1.0<br />
import QtWebKit 1.0</p>
<p dir="auto">Window {<br />
id: window</p>
<pre><code>StatusBar {
    id: statusBar
    z: 0
    anchors.top: window.top
}

PageStack {
    id: pageStack
    anchors { left: parent.left; right: parent.right; top: statusBar.bottom; bottom: toolBar.top }
}

ToolBar {
    id: toolBar
    y: 580
    height: 46
    anchors.left: parent.left
    anchors.leftMargin: 0
    anchors.right: parent.right
    anchors.rightMargin: 0
    z: 3
    anchors.bottom: window.bottom
    tools: ToolBarLayout {
        id: toolBarLayout
        ToolButton {
            id: toolbutton1
</code></pre>
<p dir="auto">width: 360<br />
height: 46</p>
<pre><code>            anchors.left: left
            anchors.leftMargin: 0
            flat: false
               iconSource: "toolbar-back"
            onClicked: {
                textfield1.visible=false
                textfield1.text= web_view1.back
                
            }
            onPlatformPressAndHold: pageStack.depth &lt;= 1 ? Qt.quit() : pageStack.pop()
        }


        TextField {
            id: textfield1
            x: 60
            y: 10
            width: 240
            height: 0
            text: "http://"
            anchors.right: toolbutton2.left
            anchors.rightMargin: 0
            anchors.left: toolbutton1.right
            anchors.leftMargin: 0
            anchors.verticalCenter: parent.verticalCenter
            z: 3
        }
        ToolButton {
            id: toolbutton2
            x: 300
            y: 0
 width: 0
</code></pre>
<p dir="auto">height: 0</p>
<pre><code>            anchors.right: parent.right
           anchors.rightMargin: 0
            iconSource: ""
            flat: true
            onPlatformPressAndHold: web_view1.forward
            onClicked: 
</code></pre>
<p dir="auto">{"&lt;body style="background-color:WHITE"&gt;&lt;B&gt; &lt;BR&gt; &lt;Font color = BLACK size = 4&gt;"<br />
web_view1.url = textfield1.text</p>
<pre><code>            }
        }
    }
  }
ProgressBar {
    id: progressbar1
    y: 566
    height: 15
    anchors.left: parent.left
    anchors.leftMargin: 0
    anchors.right: parent.right
    anchors.rightMargin: 0
    anchors.bottom: toolBar.top
    anchors.bottomMargin: -6
    z: 1
    maximumValue: 1
    minimumValue: 0
    value: web_view1.progress
}

Flickable {
    id: flickable1
    anchors.right: parent.right
    anchors.rightMargin: 0
    anchors.left: parent.left
    anchors.leftMargin: 0
    anchors.bottom: progressbar1.top
    anchors.bottomMargin: -5
    anchors.top: statusBar.bottom
    anchors.topMargin: 0
    contentHeight: web_view1.height
    contentWidth: web_view1.width
    maximumFlickVelocity: 3000
    flickDeceleration: 1500
    boundsBehavior: "DragOverBounds"
    flickableDirection: Flickable.AutoFlickDirection
    //flickDeceleration: 01
    //maximumFlickVelocity: 1000
</code></pre>
<p dir="auto">Rectangle {<br />
width: 360; height: 640<br />
SplashScreen{<br />
id:splashScreen<br />
imageSource: "images/Splashicon.svg"<br />
anchors.fill: parent<br />
onSplashScreenCompleted: {<br />
// do whatever you want splash screen loaded completely<br />
console.log("Splash Screen Loaded");<br />
}<br />
}<br />
}</p>
<pre><code>    WebView {
        id: web_view1
        x: 0
        y: 0
        //height: 545
        //width: 360
            url: "index.html";
        settings.offlineStorageDatabaseEnabled : true
        settings.offlineWebApplicationCacheEnabled : true
        settings.localStorageDatabaseEnabled : true

        preferredHeight: flickable1.height
        preferredWidth: flickable1.width
        visible: true

        onLoadStarted: {
            textfield1.visible = false
            //= "&amp;lt;body style=\"background-color:WHITE\"&amp;gt;&amp;lt;B&gt; &lt;BR&gt; &lt;Font color = BLACK size = 4&gt;"
    }
    }
}

Text {
    id: text1
    x: 5
    y: 0
    width: 38
    height: 26
    color: "#ffffff"
    text: Math.round(web_view1.progress*100) + "%"
    styleColor: "#9e9e9e"
    style: Text.Raised
    horizontalAlignment: Text.AlignLeft
    verticalAlignment: Text.AlignVCenter
    z: 5
    font.pixelSize: 15
}

Component.onCompleted: {
    pageStack.push(Qt.resolvedUrl("MainPage.qml"))
}
</code></pre>
<p dir="auto">}</p>
<pre><code>        @
</code></pre>
<p dir="auto">Any suggestions ?</p>
<p dir="auto">I'm a noob at qml so plz don't be too technical ;)</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.qt.io/topic/21318/splash-screen-won-t-go-away-when-the-animation-has-completed</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 05:50:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/21318.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Nov 2012 20:31:57 GMT</pubDate><ttl>60</ttl></channel></rss>