Hi,
On 14/06/2010, at 11:43 PM, ext Cristian Daniel Stamateanu wrote:
> 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.
>
That's a strange one. If it works in one place it should work elsewhere.
The library that you mention, libQtMultimedia4, is ultimately where the
multimedia code lives, additionally there is a qml import plugin that lives in
imports/Qt/multimedia, which is how the runtime locates the multimedia elements.
You could try setting QML_IMPORT_TRACE=1 when running your application, and
also when running the Qml application (to play tvtennis). You should then be
able to see messages about the import process.
Please post the results.
- Justin
> Regards,
> Cristi
> _______________________________________________
> Qt-qml mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml