I think i found that the bindings are not reevaluated if they are overwritten.
So for now i have to create some pseudo ContextProperties at the start of my application:
context->setContextProperty("someObjectInstance", NULL);
context->setContextProperty("otherProperty", NULL);
context->setContextProperty("someObjectInstance", NULL);
context->setContextProperty("otherProperty", NULL);
To copy to clipboard, switch view to plain text mode
and later if a Object gets instantiated, i just overwrite these:
context->setContextProperty("someObjectInstance", someObjectInstance);
context->setContextProperty("otherProperty", otherQObject);
context->setContextProperty("someObjectInstance", someObjectInstance);
context->setContextProperty("otherProperty", otherQObject);
To copy to clipboard, switch view to plain text mode
It works...but its ugly...
Is it even ok to overwrite a ContextProperty?
Bookmarks