Ok, got one step further, I added to my cpp code the following:
...
QDeclarativeEngine engine;
engine.importPlugin("C:/Qt/4.7.0-beta1/imports/Qt/multimedia/multimediad.dll","Qt.multimedia");
...
ui->declarativeView->setSource(QUrl::fromLocalFile(":/qml/main.qml"));
and now it seems to work, but it seems to me this is just a hack. There
should be a nicer way without full paths and imports in my code.
Regards,
Cristi
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml