Unsolved Custom Objects for QML & QList
-
Hi
I need to have a custom type for QList and also access it as from qml ( probably as qmlRegisterUncreatableType).
If I want to have a custom type for QList, it needs to have a copy constructor and for qml type (if I need touse qmlRegisterUncreatableType), it needs to be derived from QObject.
From Qt documentation:
For a custom type,
-
a public default constructor,
-
a public copy constructor, and
-
a public destructor.
Is it possible to have a same type for both QList and a QML type? Did I miss out anything?
Thanks
-