Way to play mp3s in Qt 4.5

audiomp3qt4

Is there a way to play mp3s in Qt 4.5?

Thanks!

Best Solution

example from Qt Assistant

QT += phonon

 Phonon::MediaObject *music =
     Phonon::createPlayer(Phonon::MusicCategory,
                          Phonon::MediaSource("/path/mysong.mp3"));
 music->play();

works perfectly.

Related Question