title: How to play sound in QML when qml is shown
body: <p>I need to play a sound in QML using SoundEffect, but all examples which I found play the sound based on some event (mouse clicked and so on ), but how to play the sound when the qml is shown? </p>
  
  <p>This is example with mouse clicked: </p>
  
  <pre><code>SoundEffect {
       id: playSound
       source: "soundeffect.wav"
   }
   MouseArea {
       id: playArea
       anchors.fill: parent
       onPressed: { playSound.play() }
   }
  </code></pre>