[Qt-qml] XmlListView question

2010-05-17 Thread tim.ong
Hi, I noticed there isn't a get() method for the XmlListView. Is there any way to get at a specific index in an XmlListView model? Thanks, Tim ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml

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

2010-05-17 Thread Bartosh Wroblevksy
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

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

2010-05-17 Thread warwick.allison
So you can only extend QML Data Model by reimplementing QDeclarativeView. Am I correct? Fortunately not. setContextProperty is just ONE way of creating an identified object. To make a model as a type in a plugin, just inherit your type from QAbstractItemModel (rather than QDeclarativeItem as

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

2010-05-17 Thread michael.brasser
On 18/05/2010, at 6:41 AM, ext Bartosh Wroblevksy wrote: 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

Re: [Qt-qml] XmlListView question

2010-05-17 Thread bea.lam
Hi Tim, On 18/05/2010, at 1:53 AM, ext tim@nokia.com wrote: Hi, I noticed there isn’t a get() method for the XmlListView. Is there any way to get at a specific index in an XmlListView model? Not at the moment. I've created http://bugreports.qt.nokia.com/browse/QTBUG-10761 to add a