qt-interest@trolltech.com
[Top] [All Lists]

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

Subject: Re: [Qt-interest] Using a QList<float> as a float[] parameter
From: Sean Harmer
Date: Wed, 23 Jun 2010 14:04:29 +0100
Hi,

On Wednesday 23 June 2010 13:36:57 Ori Lahav wrote:
> Hi Srdjan,
> This function is in an external library, can't change it.

OK then how about changing your code to use QVector<float> rather than 
QList<float> and then passing QVector<float>::data() to your external 
function? That should work.

Cheers,

Sean
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>