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
Contributor
teepis
Posts: 26
Registered: ‎06-24-2013
My Device: Z10
Accepted Solution

GroupDataModel as Q_PROPERTY

Hello,

 

Perhaps I'm looking at this the wrong way, but is it possible to have a GroupDataModel as a Q_PROPERTY? I want to be able to update the data model in C++ through a web service with JSON parsing, etc - and then use the NOTIFY property of it to react in QML. I've done this successfully with other data types, however with GroupDataModel, even if I 

#include<bb/cascades/GroupDataModel> - I am just completely unable to see GroupDataModel as an object type within header files. I just get "GroupDataModel does not name a type" etc. Perhaps there's something I'm missing.

 

Has anyone else tried this? Thanks!

 

 

Contributor
teepis
Posts: 26
Registered: ‎06-24-2013
My Device: Z10

Re: GroupDataModel as Q_PROPERTY

Ah, my apologies - the whole time I was forgetting to add this to the top of my header file:

 

using namespace bb::cascades;