Go to advanced search

by helthans
Thu Dec 05, 2013 3:39 pm
Forum: C/C++
Topic: Audio in Qt5
Replies: 2
Views: 2986

Audio in Qt5

Hi, I have a project in Qt5, where I need to play some audio files (most likely in mp3 format). I have tried with the following code: QMediaPlayer* mediaPlayer = new QMediaPlayer; mediaPlayer->setMedia(QUrl::fromLocalFile("/tmp/file.mp3")); mediaPlayer->play() Unfortunately I just get the following ...

Go to advanced search