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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 26
Registered: ‎08-13-2013
My Device: Developer
My Carrier: Developer

Accessing listview from cpp

Hi,

I have a listview in some other qml file, not in main.qml and have a QVariantList in cpp file

I want to display the content of the QVariantList in that listview from cpp file.

Please help!!

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Accessing listview from cpp

Take a look at this...

 

http://developer.blackberry.com/native/documentation/cascades/dev/integrating_cpp_qml/


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Contributor
Posts: 26
Registered: ‎08-13-2013
My Device: Developer
My Carrier: Developer

Re: Accessing listview from cpp

[ Edited ]

I had gone through that, but I didn't find solution regarding my problem. can you please provide me the sample code if possible or some solution to my problem??

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Accessing listview from cpp

I would have bet my house on that being your next question it seems no-one wants to learn and write their own code any more. For me that is what coding is all about figuring something out for yourself and getting the satisfaction from solving a problem by yourself.

 

However this question has been asked now countless times before so take your pick of sample code from the following...

 

http://supportforums.blackberry.com/t5/forums/searchpage/tab/message?filter=labels%2Clocation&locati...


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.