Why am I missing the Qt Multimedia functionality?

satg picture satg · Mar 23, 2011 · Viewed 13.1k times · Source

I am new to Qt and I'm creating a simple application which will playback an audio file. I realized that I am lacking the Qt Multimedia API for audio when I wrote:

#include <QAudioOutput>

..and I get that there is no such file.

I downloaded the latest Qt SDK framework and I can't find a way to add these APIs. I am using Qt creator IDE.

IS there a way to get the multimedia functionality working maybe as an add-on or some other way?

Thanks.

Answer

ros picture ros · Jan 30, 2012

Try including it like this:

#include <QtMultimedia/QAudioOutput>