Why am I missing the functionality of Qt Multimedia?

I am new to Qt and I am creating a simple application that will play an audio file. I realized that I was missing the Qt Multimedia API for audio when I wrote:

#include <QAudioOutput> 

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

I downloaded the latest Qt SDK framework and I cannot find a way to add these APIs. I am using the Qt development environment.

Is there a way to make multimedia functions work, perhaps as an add-in or some other way?

Thanks.

+7
source share
4 answers

Try turning it on like this:

#include <QtMultimedia/QAudioOutput>

+8
source

It’s hard to say without additional information, but perhaps your inclusion paths are simply incomplete. Read https://doc.qt.io/archives/qt-4.7/qtmultimedia.html and be sure to add

 QT += multimedia 

to your project file.

+7
source

try sudo apt-get install qtmultimedia5-dev

+2
source

in your pro. file try: QT += widgets multimedia

0
source

All Articles