[BlackBerry-Python] Anyone anxiously waiting on the first release of BB-Tart source?

Peter Hansen peter at engcorp.com
Mon Dec 10 14:51:14 EST 2012


On 2012-12-10 14:33, George Ruinelli wrote:
> Like said in the other mail, I haven’t yet figured out how to test and debug
> QML files.  If you use an invalid property or write it wrong, the app just
> doesn’t start, but there seems do be no error message :(
> I haven’t jet looked into slog2info, maybe I find something there?

Any errors in the QML show up right in the slog2 output, like this:

14:47:48.141 ca.engenuity.MyApp default 9000  bb::cascades::QmlDocument: 
error when loading QML from:   QUrl( 
"file:shared/misc/MyApp/assets/main.qml" )

14:47:48.143 ca.engenuity.MyApp default 9000    --- errors: 
(file:///accounts/1000/appdata/ca.engenuity.MyApp.testDev_enuity_MyApp5e8c33f4/shared/misc/MyApp/assets/main.qml:185:17: 
Cannot assign to non-existent property "imageSoxurce"
                     imageSoxurce: "images/chart_icon.png"
                     ^)

14:47:48.143 ca.engenuity.MyApp default 9000 
bb::cascades::QmlDocument:createRootObject document is not loaded or has 
errors, can't create root

> Maybe we could create a demo app like the Cascades Cookbook sample app but
> working with Tart?

I've got a crude one (called QmlStudies) that's not so much to show off 
everything as it is to experiment with them. It could easily evolve into 
a Cookbook type of thing though, and in fact we could probably just 
steal the cookbook code (and QML from the other samples) and clone them. 
  I'll stick a slightly cleaner version of it in the repo after I add 
the launcher.

Not much point in the cases where there's little or no "backend" code 
required though, since the QML would be identical in those cases.

-Peter


More information about the BlackBerry-Python mailing list