Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
oliver_kranz
Posts: 216
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2

Problem loading qml file, module is not installed

When I try using the QML Design Mode in the QNX Momentics IDE it always shows an error message. For example in the photobomber example from github https://github.com/blackberry/Cascades-Samples/tree/master/photobomber the design mode view shows the error message:

 

Problem loading qml file:

24:1: module "bb.cascades.multimedia" is not installed

 

How do I get the design mode to work. Or is this a bug in the QNX Momentics IDE. I am using the latest version 10.0.06 beta 2 of the BlackBerry 10 Native SDK.

Please use plain text.
Developer
mdodd
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: Problem loading qml file, module is not installed

As far as I know, this is a bug due to be fixed in Beta 3. I get the same error for any library that isn't the standard cascades library. It'll still work, but just won't be parsable by the QML editor.



Did this post help you? If so, please make sure to "like" it!
Please use plain text.
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30
My Carrier: Bell

Re: Problem loading qml file, module is not installed

[ Edited ]

This problem still exists in beta 3.

 

EDIT: Just noticed this related thread: http://supportforums.blackberry.com/t5/Cascades-Development/QML-Editor-module-bb-platform-is-not-ins...

 

Will look into it...

 

EDIT 2: Did not work.

Please use plain text.
New Contributor
whomikey
Posts: 6
Registered: ‎10-10-2012
My Device: BlackBerry 10 Dev Alpha
My Carrier: Sprint

Re: Problem loading qml file, module is not installed

i'm having the same problem with all non standard ones as well. is there any update on this?

 

thanks!

Please use plain text.
Developer
donturner
Posts: 135
Registered: ‎11-14-2010
My Device: BlackBerry Z10 (White)
My Carrier: Vodafone

Re: Problem loading qml file, module is not installed

The QML previewer is quite limited at the moment in that it will not load any custom components or controls defined outside the vanilla Cascades library (Labels, Buttons etc). There is no easy way round this, although one suggestion is to create a 'design mode view' which uses a placeholder graphic rather than the custom control.

 

Bear in mind, it's still in beta! :smileyhappy:

 

Please use plain text.
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30
My Carrier: Bell

Re: Problem loading qml file, module is not installed

The problem is I'm not using any custom components or controls. Stock cascades sample from the website. Some work, some don't. I can live without it but it's just a little annoying, that's all.

Please use plain text.
Developer
vencedor
Posts: 18
Registered: ‎11-08-2012
My Device: Blackberry 10 Dev Alpha B
My Carrier: ??

Re: Problem loading qml file, module is not installed

I am having the same problem. It used to wok fine, but I needed to reformat my computer and re-install the SDK. I restored the same workspace, but this time it won't view the DESIGN because of the module created from the cpp.

cpp file:

 

qmlRegisterType<QTimer> ("my.library", 1, 0, "QTimer");

 

qml:

 

import my.library 1.0

 

error:

 

Problem loading QML file: 5:1: module "my.library" is not installed

 

 

If you find my post helpful, please click like :smileyhappy:
Please use plain text.
Developer
vencedor
Posts: 18
Registered: ‎11-08-2012
My Device: Blackberry 10 Dev Alpha B
My Carrier: ??

Re: Problem loading qml file, module is not installed

My QML is encountered through this code declaration of the library:

 

CPP code:

qmlRegisterType<QTimer> ("my.library", 1, 0, "QTimer");

 

QML code:

import my.library 1.0

 

I think the cascades design mode expect a concrete library and not dynamically created one

If you find my post helpful, please click like :smileyhappy:
Please use plain text.
Developer
raffi
Posts: 154
Registered: ‎06-23-2012
My Device: Z10 & Z30
My Carrier: Bell

Re: Problem loading qml file, module is not installed

Sounds accurate to me. I haven't tested this again with the gold SDK but I'm assuming it hasn't been fixed?
Please use plain text.
Developer
vencedor
Posts: 18
Registered: ‎11-08-2012
My Device: Blackberry 10 Dev Alpha B
My Carrier: ??

Re: Problem loading qml file, module is not installed

problem still persist on the gold sdk, but the problem doesn't bother on the preview. in my case

If you find my post helpful, please click like :smileyhappy:
Please use plain text.