Koying
unread,Nov 18, 2011, 8:39:11 AM11/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to andro...@googlegroups.com
I have a "components" subdir in my "qml" dir.
On the other platforms (and with qml as resources), I can do an 'import "components" as Cp' to make the components in the subdir available.
It doesn't seems to work on Android with assets...
For info, I set my main qml file with:
viewer->setMainQmlFile(QLatin1String("qml/main.qml"));
Message is:
W/Qt (10564): file:///qml/main.qml:5:1: "components": no such directory
W/Qt (10564): import "components" as Cp
W/Qt (10564): ^
In the .apk, "main.qml" is in "assets/qml/main.qml" and the components in "assets/qml/components/*"