I'm doing an app. When I run a sound start with QSound, and
Press exit buttom, I want to sound another sound before stopping.
The startup sound is heard, but the sound by pressing the exit, not
heard.
Anyone can help me?
I think it's because the sound is running in parallel, and the application ends before running, or something like that.
The code is the same for the two cases, including tests with the same
sound.
CODE:
QString son = "E:/Vaipho/Sonidos/apagando.wav";
QSound *sonido = new QSound(son);
sonido->play();



lay("mySoundBeforExit");

