Qt Code:
{ Q_OBJECT public: QList<QPair<double, QString>> do_something(); }To copy to clipboard, switch view to plain text mode
How could I access the data return by do_something in qml?
Qt Code:
{ Q_OBJECT public: QList<QPair<double, QString>> do_something(); }To copy to clipboard, switch view to plain text mode
How could I access the data return by do_something in qml?
There is very likely not exactly matching JavaScript type.
In which case you'll have to find a better way of presenting the data.
What is the meaning of those pair values? Does the order of the pairs matter?
Cheers,
_
I can see that the result is double and string, but what do they mean?
Can you given an example?
Cheers,
_
Hmm.
You could try a QVariantList and have each entry be another QVariantList with two elements.
Or a QVariantList and each entry a QVariantMap with an entry for "value" and an entry for "unit"
Cheers,
_
stereoMatching (30th December 2013)
Bookmarks