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
Posts: 83
Registered: ‎02-18-2013
My Device: Blackberry 10
My Carrier: airtel

Asynchronous image download in a list view cascade programming?

Please help me.

I see below link 

http://blackberry.github.io/Cascades-Samples/imageloader.html

but I am not understand.So please explain.........

 

Thanks in advance.

Smiley Happy

Developer
Posts: 16,786
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Asynchronous image download in a list view cascade programming?

please specify where you are not understand.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 83
Registered: ‎02-18-2013
My Device: Blackberry 10
My Carrier: airtel

Re: Asynchronous image download in a list view cascade programming?

In main.qml

dataModel: _app.model

&

App::App(QObject *parent)
        : QObject(parent)
        , m_model(new QListDataModel<QObject*>())
In this function there are many times m_model is append.
Highlighted
Developer
Posts: 16,786
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Asynchronous image download in a list view cascade programming?

this is a constructor initializer, m_model is initialized as a new QListDataModel.
Append is called when something is added to the datamodel.
see https://developer.blackberry.com/cascades/reference/bb__cascades__qlistdatamodel.html
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter