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

Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB
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

Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
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 -- (BB10 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!
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
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.





Good good study, day day up