09-28-2012 06:09 AM
When I try using the QML Design Mode in the QNX Momentics IDE it always shows an error message. For example the design mode view shows the error message:
Problem loading qml file:
module "bb.platform" 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.9 beta 3 of the BlackBerry 10 Native SDK for MacOS.
MacOS X 10.8.2
09-28-2012 09:04 AM
We need to make this a sticky as you're the 3rd person to post this.
Steps to solve;
- Uninstall SDK and all previous remnants
- re-install latest SDK
Should work now.
09-30-2012 03:17 PM
11-12-2012 03:22 PM
Unistalling all installed SDK is not a good idea since someone could also develops for PlayBook. I'm getting the same problem. Will let you know once I fix it.
11-12-2012 03:48 PM
Since my original posting in this thread, I have come to learn that this is a bug. The QML editor will work fine as long as you don't include any custom qmlRegisterType that you may define in the cpp. This is why some sample apps work with the editor and others don't.
11-12-2012 03:50 PM
Does it mean that if I just build a sample and deploy on device it would work properly?
Thanks!
11-12-2012 03:54 PM
Assuming there are no errors, yes. Just because a view doesn't render in QML preview doesn't mean there is anything necessarily wrong with it. There may very well be errors, but just read the error and if it mentions the custom type not being installed, then it should be safe to ignore.
To test, deploy it to a simulator or device. The main qml file of my app doesn't render in the preview but works fine once deployed.
11-12-2012 04:01 PM
Thanks! A sample works well on device.
11-13-2012 01:31 AM