Re: [Interest] Qt 5: Converting QJsonValue to QJsonArray

2012-08-13 Thread lars.knoll
On Aug 8, 2012, at 9:14 PM, ext Stephen Chu step...@ju-ju.com wrote: I am trying out the new QJsonValue in Qt 5 and find myself wondering: Does converting a QJsonValue which is an array to a QJsonArray with QJsonValue::toArray() makes a copy of the underlying data? Say I load a JSON file

Re: [Interest] Qt 5: Converting QJsonValue to QJsonArray

2012-08-13 Thread Stephen Chu
On 8/13/12 9:24 AM, lars.kn...@nokia.com wrote: On Aug 8, 2012, at 9:14 PM, ext Stephen Chu step...@ju-ju.com wrote: I am trying out the new QJsonValue in Qt 5 and find myself wondering: Does converting a QJsonValue which is an array to a QJsonArray with QJsonValue::toArray() makes a copy of

Re: [Interest] Qt 5: Converting QJsonValue to QJsonArray

2012-08-13 Thread lars.knoll
On Aug 13, 2012, at 11:21 PM, ext Stephen Chu step...@ju-ju.com wrote: On 8/13/12 9:24 AM, lars.kn...@nokia.com wrote: On Aug 8, 2012, at 9:14 PM, ext Stephen Chu step...@ju-ju.com wrote: I am trying out the new QJsonValue in Qt 5 and find myself wondering: Does converting a QJsonValue

[Interest] Qt 5: Converting QJsonValue to QJsonArray

2012-08-08 Thread Stephen Chu
I am trying out the new QJsonValue in Qt 5 and find myself wondering: Does converting a QJsonValue which is an array to a QJsonArray with QJsonValue::toArray() makes a copy of the underlying data? Say I load a JSON file which is an object that contains an array with thousands of items using