qmlRegisterType, "module is not installed" error...

1,229 views
Skip to first unread message

faenil

unread,
Dec 7, 2011, 5:50:34 AM12/7/11
to andro...@googlegroups.com
Hi everyone :)

has anyone ever used qmlRegisterType on Qt Android port?

I'm using  qmlRegisterType<biviewer>("Test", 1, 0, "Viewer");
to expose my biviewer to QML, and I'm calling qmlRegisterType before anything else in the main.cpp

Then I use "import Test 1.0" in my .qml file, and create a Viewer{ } element...

But, I get "module "Test" is not installed" at runtime...

is there anything I'm missing? I can't think of anything wrong...

Thanks in advance :)

Koying

unread,
Dec 7, 2011, 7:11:09 AM12/7/11
to andro...@googlegroups.com
It Works for me.
 
Are you sure the name "Test" does not conflict with something else? Try maybe another name, preferably a fully qualified one, e.g. "com.mine.test"
 
- Chris -
Message has been deleted

faenil

unread,
Dec 7, 2011, 8:52:49 AM12/7/11
to andro...@googlegroups.com
just tried again, and it works now :) I tried it on the Asus Transformer yesterday...now I'm trying it on the API Level 13 AVD, and it works...

no change needed at all...how does this come? qmake black magic? :O

These problems are so strange...
Reply all
Reply to author
Forward
0 new messages