Registering sequence type wouldn't make it accessible from QML. Check my patch which adds support for QList<float> [1]. I don't know if it is possible to make your own sequence type available to QML from plugin.
1. https://codereview.qt-project.org/83761 On Fri, Jun 13, 2014 at 4:42 PM, mailinglist inputoutput < qtinerest....@gmail.com> wrote: > >> Q_PROPERTY(QList<unsigned long long> READ myValue NOTIFY > myValueChanged) > > Yes. What's the problem when you do exactly that? > Thanks for taking the time Thiago! > > I register in plugin.cpp (where I also do qmlRegisterType 's): > qRegisterMetaType<unsigned long long>("myId"); > > Then inside qml reading myValue via console.log() results in: > > QMetaProperty::read: Unable to handle unregistered datatype > 'QList<unsigned long long>' for property > > > qRegisterMetaType<QList<unsigned long long> >("myId"); // wont work > either - same result > > > > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest