On 20.01.2011 00:56, ext Aidan O'Kelly wrote:
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?
Hi Aidan,
this indeed appears to be missing functionality in PySide. I filed a bug
about it:
http://bugs.openbossa.org/show_bug.cgi?id=629
Add yourself to the CC list of the bug to keep updated on its progress.
Cheers,
ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside