QML : How to read a QList from C++
问题 I have a simple need : I have defined a C++ class class MyClass: public QDeclarativeItem { Q_OBJECT public: MyClass(QDeclarativeItem * parent=0); ... private: QList<QString> mList } And of course, I've registered it : qmlRegisterType<MyClass>(...) I want to access in the QML code to my QList<QString> mList . How can I do it? It annoys me as it looks like a simple problem, but I can't find anything about this. (I can create a Q_INVOKABLE slot, but I can't read the results, etc...) Edit : QML