Re: [Interest] Context ambiguities when exposing a Qt Stringlist to QML

2016-01-05 Thread Jason H
kh" To: willemfergu...@zoology.up.ac.za, interest@qt-project.org Subject: Re: [Interest] Context ambiguities when exposing a Qt Stringlist to QML Documentation states: "There are two ways in which such sequences can be exposed to QML: as a Q_PROPERTY of the given sequence type; or as th

Re: [Interest] Context ambiguities when exposing a Qt Stringlist to QML

2016-01-05 Thread Dmitry Volosnykh
Documentation states: "There are two ways in which such sequences can be exposed to QML: as a Q_PROPERTY of the given sequence type; or as the return type of a Q_INVOKABLE method." Nothing is being said

[Interest] Context ambiguities when exposing a Qt Stringlist to QML

2016-01-05 Thread Willem Ferguson
Here are QML and C++ snippets. The root context provides a context to the top-level QML rectangle. But the QStringList is required by the grandchild of the top-level rectangle. I suspect the context for exposing the QStringList is inappropriate. What is the correct approach here? C++: int