[quote author="dmcr" date="1352988312"]You have many ways to interact with QML.
The two main ones are :
A Context* myContext which is a QObject, which could be an object that keeps all the data you want to share with QML.
and inside it have some properties like :
@
Q_PROPERTY(int progressBarDuration READ getProgressBarDuration WRITE setProgressBarDuration NOTIFY progressBarDurationChanged)@
then with @yourDeclarativeView->rootContext()->setContextProperty("Context", myContext);@
and inside
you can access throught Context.progressBarDuration
A QDeclarativeItem is rarely created in Cpp, but you could, however.
You could also declare it, and then using in QML like any other component with some import.
In your example i think the first approach may be better, ie using a kind of Context.logViewerManager.
Then, if you have some lists, use setContextProperty(my model....
However everything is in the doc :)
[/quote]
Thanks! It's exactly what I need! Thanks for the help!