How to make function sleep in QML
<p>I have got a function and the <code>Timer</code> in QML. How can I make it sleep for a while and invoke the function after?</p>

<p>My timer looks like:</p>

<pre><code>Timer {
    id: timer
    interval: 5000
    repeat: false
    onTriggered: procPage()
}
</code></pre>

<p>The problem is that when I start the <code>Timer</code>, function <code>procPage()</code> invokes immediately.</p>