[Interest] QList<QGeoCoordinate> to QML transfer optimization
Maxim Bescherevnykh
maxim.bescherevnykh at gmail.com
Mon May 30 10:15:02 CEST 2016
Hello,
Is possible to transfer QList<QGeoCoordinate> to QML (to Map path) without
temporary copy conversion to QVariantList?
What is fastest way to convert QList<QGeoCoordinate> to QVariantList?
Currently i doing it that way:
QVariantList tmp;
tmp.reserve(data.size());
for (const QGeoCoordinate& i: data)
tmp.push_back(QVariant::fromValue(i));
return tmp;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160530/68bb9c64/attachment.html>
More information about the Interest
mailing list