|
|
2012-01-22
, 10:31
|
|
Posts: 435 |
Thanked: 769 times |
Joined on Apr 2010
|
#2
|
viewer.engine()->addImportPath(QString("/opt/qtm12/imports"));
|
|
2012-01-22
, 13:01
|
|
Posts: 62 |
Thanked: 158 times |
Joined on Jul 2011
@ Malaysia
|
#3
|
Here's my code#include <QApplication>
#include <QtDeclarative>
#include <QUrl>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QDeclarativeView view;
view.setSource(QUrl("qrc:/main.qml"));
view.engine()->addImportPath(QString("/opt/qtm12/imports"));
view.showMaximized();
return app.exec();
}
|
|
2012-01-22
, 15:15
|
|
Posts: 62 |
Thanked: 158 times |
Joined on Jul 2011
@ Malaysia
|
#5
|
You're not setting the import path before setting the source qml file.

module QtMultimediaKit not installed
any idea on how to solve it?
I have libqtm-12 installed on my phone