[Qt-qml] Audio - Qt.multimedia

Cristian Daniel Stamateanu cristi.qt at gmail.com
Mon Jun 14 15:43:33 CEST 2010


Hello,

I have a C++ project that displays QML files inside a QDeclarativeView. 
I tried to make Audio work according to the user manual example and I 
cannot:

import Qt 4.7
import Qt.multimedia 4.7

Audio { source: "audio/song.mp3" }

I get the following error:
file::/qml/main.qml:2:1: module "Qt.multimedia" is not installed
      import Qt.multimedia 4.7

I am using Qt 4.7 beta 1 and Qt Creator Beta 1.3.83 on a Windows 7  32 
bit machine.

First I thought I may have missing the Qt Multimedia altogether, but I 
have libQtMultimedia4 in the lib folders .
Furthermore, loading tvtennis from qt4 samples works like a charm and it 
seems to have the same Qt.multimedia import.

Regards,
Cristi



More information about the Qt-qml mailing list