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
Highlighted
New Developer
Posts: 12
Registered: ‎03-09-2011
My Device: Z10
My Carrier: T-mobile

Display not updated when propertyMap changes

Hi,

I use the following method to paasst messages from C to QML:

 

QDeclarativePropertyMap * propertyMap = newQDeclarativePropertyMap;

...

qml->setContextProperty("propertyMap", propertyMap);

...

propertyMap->insert("HighScore", QVariant(MyHighScore));

 

QML:

 

Label {                       

text: propertyMap.HighScore

 

This works as expected under most conditions. When I call propertyMap->insert the cossosponding

text in QML is updated and shownon the display .

 

But not always.

I use  a propertyMap->insert inside a callback function from Scoreloop.

I can see in the log that the callback runs properly but the display does not update to the new

values in about 50%. When I minimze the app using bottom swipe the new values are shown.

Any Idea?

 

Michael

The famous Movie Quiz:
http://appworld.blackberry.com/webstore/content/34285892/?lang=en&countrycode=DE
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Display not updated when propertyMap changes

Hi MichaelBuc,

 

Please report this issue in jira: https://www.blackberry.com/jira/secure/Dashboard.jspa. Please add to your ticket a sample project that will help us reproduce the issue.

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
New Developer
Posts: 12
Registered: ‎03-09-2011
My Device: Z10
My Carrier: T-mobile

Re: Display not updated when propertyMap changes

Hi,

I found that the effect is not limited to propertyMap. Nothing is updated after some callbacks from scoreloop.

I tried several approaces now without success.

 

Michael

The famous Movie Quiz:
http://appworld.blackberry.com/webstore/content/34285892/?lang=en&countrycode=DE