If we try to use a QObject property of type 'QAbstractListModel' from
QML, (we are using it as a model on a ListView or similar)
- MetaProperty::read: Unable to handle unregistered datatype
'QAbstractListModel*' for property 'TestItem::alist'

If we set the same object as a property of the context
(view->rootContext()->setContextProperty() ), it works as expected.

I think we need to register the QAbstractItemModel type with the
MetaType system, using  qRegisterMetaType<>() .. Is there a place we
can do this in PySide?
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to