Skip to content

“QSound: No such file or directory” How to include QSound in QT Creator 2.6.2 (QT 5.0)

Just a quick blog on QSound. Me and a mate of mine spent hours researching (read: Googling) how to include QSound in a header file. In our environments it claimed:

"QSound: No such file or directory."

“QSound: No such file or directory.”

You have to add the word multimedia in your .pro file:

QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets multimedia

I’m pretty sure at no point in the documentation it mentions this. If there is a reason why vanilla QT Creator 2.6.2¬†doesn’t¬†include this already let me know.

Hope I saved you a few hours!

Advertisements