Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
None
Description
Currently, any call of a Q_INVOKABLE taking a vector<int> or a QVector<int> or a QList<int> will wrap the container into a variant before doing the call. This seems highly undesirable for vector and quite unnecessary for the Qt containers. Teach the qv4qobjectwrapper CallArgument to pass such pointers to metacalls directly. That way a Q_INVOKABLE that takes a reference to such a container doesn't need to copy the container.
Attachments
For Gerrit Dashboard: QTBUG-60386 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
192809,8 | Don't wrap std::vector into a QVariant when passing it to a Q_INVOKABLE | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |