On Mon, 2010-09-13 at 13:38 +0200, Cornelius Hald wrote:
> Do I have to use Q_DECLARE_METATYPE() with MyListModel? I'll give it a,
> but I would be very grateful for additional hints.

After adding Q_DECLARE_METATYPE(MyListModel*); to the bottom of
MyListModel.h and qReisterMetaType<MyListModel*>("MyListModel"); to
main.cpp, the error message is gone.
Unfortunately all roles of my model are now [undefined].

Anything else I can try?

Thanks!
Conny


_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to