Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unable to handle unregistered datatype 'QLinkedList<QString*>'
ijuha last edited by
I'm looking to pass a QLinkedLIst to be iterated/displayed in QML. Since QLinkedList does not require the Q_DECLARE_METATYPE macro, I thought I could register as Q_PROPERTY in my c++ source file:
Q_PROPERTY(QLinkedList<QString *> roleFunctions READ GetRoleFunctions NOTIFY roleFunctionsChanged)
However, I'm getting the error during emulation:
QMetaProperty::read: Unable to handle unregistered datatype 'QLinkedList<QString*>' for property 'BackEnd::functions'
First of all, is it possible to pass a QLinkedList to be iterated in QML? If so, what am I missing?
Hi and welcome to devnet,
I don't know about the use of QLinkedList with QML but why don't you use a QStringList ?