
Originally Posted by
d_stranz
It still looks to me as though you are executing all of this code before the event loop is running. Things that happen in your MainWindowCC and InterfaceObject constructors are taking place before app.exec() (which starts the event loop). Your connect() statements set up signal-slot connections, but any signals emitted are ignored if the event loop is not running.
Anyway, if that isn't the problem, I can't be of much more help. I don't use qml and do not have any experience with it. What I am saying is from my own experience with C++ and unsuccessfully trying to use signals and slots before an event loop is running.
Hello Mr.d_stranz
Many thanks for your support.
it seems that qml doesn't accept writing to multilevel JSON object like the next anymore:
gDatPr["SO0"] [api.shcObjName]="newName"
gDatPr["SO0"] [api.shcObjName]="newName"
To copy to clipboard, switch view to plain text mode
but it do accept :
var tempVar=gDatPr["SO0"]
tempVar[api.shcObjName] ="newName"
gDatPr["SO0"] =tempVar
var tempVar=gDatPr["SO0"]
tempVar[api.shcObjName] ="newName"
gDatPr["SO0"] =tempVar
To copy to clipboard, switch view to plain text mode
i tworked like this , and the connected signal/slots are working as well
Bookmarks