gt; store a pointer to your QVector in the heap object. Heap::QQmlSequence does
>>> that, for example. Just make sure to use V4_NEEDS_DESTROY and provide a
>>> destroy() function to delete the vector.
>>>
>>> I'd probably go for the first approach with perhap
es to the JS heap.
If your array has only references to the C heap, then you're probably better
off using a pointer to a regular vector.
Simon
From: Development
mailto:qt...@qt-project.org>>
on behalf of Valery Kotov
mailto:kotov.val...@gmail.co
ct type
>> (similar to how Object has MemberData) if the array contains references to
>> the JS heap. If your array has only references to the C heap, then you're
>> probably better off using a pointer to a regular vector.
>>
>>
>> Simon
>>
>> -
references to
> the JS heap. If your array has only references to the C heap, then you're
> probably better off using a pointer to a regular vector.
>
>
> Simon
>
> --
> *From:* Development qt...@qt-project.org> on behalf of Valery Kotov
&
Hi Valery,
> On 8 Aug 2018, at 09:10, Valery Kotov wrote:
>
> Hello all,
>
> I have a question about QV4 heap objects and what could be stored in them.
> I would like to move data structure from c++ heap to GC heap. Unfortunately,
> my data structure stores a pair of QLists internally.
> As fa
development mailing list
Subject: [Development] Storing and managing ValueArray inside QV4::Heap objects
Hello all,
I have a question about QV4 heap objects and what could be stored in them.
I would like to move data structure from c++ heap to GC heap. Unfortunately, my
data structure stores a
Hello all,
I have a question about QV4 heap objects and what could be stored in them.
I would like to move data structure from c++ heap to GC heap.
Unfortunately, my data structure stores a pair of QLists internally.
As far as I'm aware, QV4::Heap objects should be "trivially constructible",
and t