views:

37

answers:

1

A suite of data models built on top of Qt's reflection system seems like a natural synergy, but I haven't found such a beast in the Qt library itself or from a 3rd party. Does anyone know if such a thing exists?

I'm look for data models for editing and displaying a collection of QObjects QMetaObject properties. I can kind of understand why this isn't included in the Qt library (as it would not be possible to expose all of QMetaObject in a clean way) but I'm hoping I don't have to write a bunch of data models and proxy models to display the hierarchies and properties of QObjects.

+1  A: 

If you are representing a tree of QObjects then QStandardItemModel will probably suit your needs. If not, you would probably subclass that instead of QAbstractItemModel.

Arnold Spence
Finally got a chance to read the docs and experiment and it does seem to be good enough!
Dan O