[Qt-interest] Using a QList<float> as a float[] parameter

Ori Lahav vbcrlf at gmail.com
Wed Jun 23 14:36:57 CEST 2010


Hi Srdjan,
This function is in an external library, can't change it.

Ori.

On Wed, Jun 23, 2010 at 3:30 PM, Srdjan Todorovic <
todorovic.s at googlemail.com> wrote:

> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100623/beb5ac59/attachment.html 


More information about the Qt-interest-old mailing list