All I want to do write a programm in Qt that plays a simple .wav file. This works perfectly on the PC where my Qt runs, but whenever I want to run the program on a different computer there is no sound. I couldn't find any solution for this problem anywhere yet.
This is what I tried so far:
QFile dir("C:/Sounds/countdown3.wav");
if(dir.exists()){
ui->labelSound->setText("File found!");
ui->pushButtonPlay->setEnabled(true);
ui->labelplay->setEnabled(true);
ui->pushButton->setEnabled(false);
}
else ui->labelSound->setText("File not available!");
(When I rename the file I get the "File not available!" message, so this works.)
To deploy the program from my pc to my laptop, I put the following into a folder:
and the "Sounds" folder with countdown3.wav to the C:/ -drive. Still no sound :(
What am I missing?
I hope you can help me!
The audio plugins folder: [Qt-Installation]\5.4\msvc2013\plugins\audio
audio\qtaudio_windows.dll
what you needaudio\qtaudio_windowsd.dll
is the debug libraryaudio\qtaudio_windowsd.pdb
symbolsYou don't need to deploy the last two.