[Interest] QML QList<long long> possible?

Oleg Shparber trollixx at gmail.com
Sat Jun 14 02:00:10 CEST 2014


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.rpm at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140613/74ace1ca/attachment.html>


More information about the Interest mailing list