You are creating a new declarative view on the stack so it gets out of scope and is destroyed immediately.
You are creating a new declarative view on the stack so it gets out of scope and is destroyed immediately.
proj_symbian (30th May 2011)
oh yes yes that was the problem indeed thanks a lot wysota for your patience and help,
i have one more doubt is this the correct approach i am doing or there is any better approach to update data on QML file?? I have gone through the docs but i was not able to understand.
Regards,
I don't know what is best but I don't see a point in creating a new declarative view if you just want to change the script. You can call setSource() on the existing view.
yes you are correct, but how can i get the reference of QApplicationViewer present in main.cpp to my NetworkManager class??
I know this is a very basic question but i am not able to do that
It doesn't have to be in the NM class. Emit a signal and catch it elsewhere where you have a pointer to the view at hand.
apologies but its still not clear , i have a pointer of QApplicationViewer in main.cpp only, how can i get that on my NM class, are you telling i need to emit a signal from my main.cpp but i guess thats not possible.
a simple code example for illustration will be greatful.
Bookmarks