Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Custom Objects for QML & QList
saitej last edited by
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?