Hello!
How can I use an audio file from Resources ? I have tried the following code but without any success. I would appreciate if someone could shed some light on how to play audio files from the resource qrc file. Thanks !
Code:Phonon::MediaObject *music = createPlayer(Phonon::MusicCategory, Phonon::MediaSource(":/music.wav")); music->play();PS: The code works fine with a local audio file but not via the .qrc fileCode:<RCC> <qresource prefix="/"> <file>music.wav</file> </qresource> </RCC>

Reply With Quote




