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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
TheMarco
Posts: 669
Registered: ‎02-19-2011
My Carrier: Sprint

Dynamically create and insert list items in QML

Is it possible to do this or can it only be done in C++?

I know you can create a list in QML and assign a datamodel that uses some JSON or XML file but what if you want to create items dynamically?

 

 

Staff UI Prototyper (read: full-time hacker)


My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Please use plain text.
Developer
peter9477
Posts: 5,636
Registered: ‎12-08-2010
My Carrier: none

Re: Dynamically create and insert list items in QML

It's totally possible. I haven't resorted to C++ for this yet.

Pretty sure there's a previous thread with a nearly identical title, but I might be remembering one that was about creating components rather than just data model entries. Did you search yet?

Peter Hansen -- (PlayBook and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Carrier: All

Re: Dynamically create and insert list items in QML

[ Edited ]

This article must be helpful for you if you can read it completely. As well as, you can refer with the sample application of accounts.

 

http://developer.blackberry.com/cascades/documentation/ui/lists/groupdatamodel.html

 

Thanks




p(^_^)q
Good good study, day day up
Please use plain text.