Pass object pointer throught c++ dataModel
-
Hi,
I'm writting a C++ dataModel. I follow the documentation provided, so derived from QAbstractListModel. I defiend some role, one of them must be a pointer to a register type. But by passing throught the Qvariant, the QML side lose the type and it never recognise the true type.
Did you have a solution or an idea ?Thanks
-
Hello,
Did you read this article "article":http://cdumez.blogspot.fr/2010/11/how-to-use-c-list-model-in-qml.html ?
It was very helpfull for me!