Re: [Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread Wei, Xiaohai
swer this. > > My guess is that this data type is not supported by QML yet: > see > http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html#supported-data-types > > Kr, > Chris. > > > On Thu, Dec 9, 2010 at 12:21 PM, Wei, Xiaohai wrote: > >> yeah, it works. &

[Qt-qml] how to expose nested ListModel from C++ to QML?

2010-12-09 Thread Wei, Xiaohai
I need to use nested ListView in QML. In each item of the outer ListView, named by A, it will contain another ListView B. I can easily expose the DataModel for A from C++, but how can I expose the list of DataModel for each B? I have a C++ class derived from QAbstractListModel, and expose an inst