Hi, I'm having trouble getting QSound to play anything other than the default Windows dink. I've tried giving it a hard path, which worked, but I need it to be relative to the current directory.

The source code directory is structured as:

./
./Pics
./Sounds

where all the source code is located in ./

I've tried the following:
Qt Code:
  1. QSound::play(":/Sounds/sound.wav");
  2.  
  3. QSound::play(":Sounds/sound.wav");
  4.  
  5. QSound::play("Sounds/sound.wav");
  6.  
  7.  
  8. //I know the following works
  9. QSound::play("C:/sound.wav");
To copy to clipboard, switch view to plain text mode 


So my question is what am I doing wrong in regards to playing sound from the current directory?

Thanks