Bonjour,
Je voudrais assigner deux QDeclarativeContext différents à deux objets différents dans mon fichier QML.
J'ai sèché toute la soirée, pas trouvé...
La doc dit ceci :
Je ne vois donc pas comment je peux écraser le contexte courant par mon contexte...
Code C++ : Sélectionner tout - Visualiser dans une fenêtre à part void QDeclarativeEngine::setContextForObject ( QObject * object, QDeclarativeContext * context ) [static]
Sets the QDeclarativeContext for the object to context. If the object already has a context, a warning is output, but the context is not changed.
Partager