Hello,

I have a problem with QMediaPlayer play sound in a different PC than in the developed one.
The release program works just fine in the PC that I have developed (I've copied all *.dll,...), but trying to use the same program in a different PC there is no sound.
I have my sounds in my Resources and their are together with the images that I use, so it isn't path fail.

I create in the header (*.h) file my QMediaPlayer variable:
Qt Code:
  1. QMediaPlayer * ErrorSound;
To copy to clipboard, switch view to plain text mode 

At cpp, in the constructer, I load the sounds:
Qt Code:
  1. ErrorSound = new QMediaPlayer();
  2. ErrorSound->setMedia(QUrl("qrc:/Error.wav"));
To copy to clipboard, switch view to plain text mode 

Further in the correct place I call it to play:
Qt Code:
  1. ErrorSound->play();
To copy to clipboard, switch view to plain text mode 

I've checked the Data.qrc (my resource file) and all files are there:
<RCC>
<qresource prefix="/">
.......other files
<file>Error.wav</file>
</qresource>
</RCC>

All image files and sound files are in same place, same folder, as the *.exe file.

If anyone got this problem and know how to fix it i would thank you for helping me out.