[Qt-interest] Using a QList<float> as a float[] parameter
Srdjan Todorovic
todorovic.s at googlemail.com
Wed Jun 23 14:30:14 CEST 2010
Hi,
On 23 June 2010 13:01, Ori Lahav <vbcrlf at gmail.com> wrote:
> I want to use a function that requests float* (array of float) as a
> parameter. The problem is, the data in my program is stored in a linked list
> of float. The only possible solution I could think of is copy the whole list
> to a new array, but it is very expansive (my program uses this function a
> lot).
> Is there any other solution?
Can you modify your function to use this?
http://doc.trolltech.com/4.6/qlist.html#operator-5b-5d-2
Srdjan
More information about the Qt-interest-old
mailing list