title: How to repetitive / looping Sound from Resource file in Qt?
body: <p>Is there any simple way how to play repetitive / looping Sound from Resource file in Qt?</p>
  
  <p>For single sound play I use this and it works fine:</p>
  
  <pre><code>QSound::play(":/Sounds/swoop.wav");
  
  (WORKS)
  </code></pre>
  
  <p>But this not:</p>
  
  <pre><code>QSound sound(":/Sounds/swoop.wav");
  sound.play();
  
  (DOES NOT WORK)
  </code></pre>
  
  <p>Or even this:</p>
  
  <pre><code>QSound sound (":/Sounds/swoop.wav");
  sound.setLoops(QSound::Infinite);
  sound.play();
  
  (DOES NOT WORK)
  </code></pre>
  
  <p>I think I should use QSoundEffect class:</p>
  
  <pre><code>QSoundEffect effect;
  effect.setSource(":/Sounds/swoop.wav");
  effect.setLoopCount(QSoundEffect::Infinite);
  effect.setVolume(0.25f);
  effect.play();
  </code></pre>
  
  <p>But QSoundEffect class doesn't work with Resources files which I have to use.
  I've tried to find a way around with QFile but unsuccessfully.
  I use Qt 5.3.1
  Any ideas?</p>