PDA

View Full Version : How do I make Qt5 to see QMultimedia



davidlamhauge
3rd January 2014, 22:54
I have upgraded QtCreator to 2.7.1, on my Ubuntu 13.10.
Suddenly QMultimedia can't be seen by QtCreator.
The multimedialibraries are at /usr/include/Qt5/ so I have tried the following in the .pro file.
It doesn't work.


INCLUDEPATH += /usr/include/Qt5/
QT += multimedia
CONFIG += multimedia

When I try to


#include <Qt5/QMultimedia/QAudioFormat>

I get an error, because in "qaudioformat.h" it includes <QtMultimedia>?!? QtMultimedia is deprecated, or...?
It is odd and beyond me...

Can anyone advise me to solve this problem?

wysota
4th January 2014, 15:13
Make sure you are using qmake from the proper Qt version (Qt5 and not Qt4).