[Qt-qml] C++ Data Models and plugin mechanism

Bartosh Wroblevksy bartosh at live.com
Mon May 17 22:41:39 CEST 2010


Hello,
I am enjoying QML. I wanted to confirm what I have been researching. Right now as it stands, if you want to extend a QML Data Model in C++ (as in the C++ Data Models section in http://doc.qt.nokia.com/4.7-snapshot/qdeclarativemodels.html#C++). You can't do that with a plugin (similar to the plugin example). 

And this because somewhere the plugin would need to know about the QDeclarativeView to call

void QDeclarativeContext::setContextProperty ( const QString & name, QObject * value )

So you can only extend QML Data Model by reimplementing QDeclarativeView. Am I correct?

Cheers,Bartosh 		 	   		  
_________________________________________________________________
MSN Dating: Find someone special. Start now.
http://go.microsoft.com/?linkid=9729707



More information about the Qt-qml mailing list