Uwe Rathmann | 16 Apr 19:38

Re: Help with understanding QwtRasterData needed

On Wednesday 16 April 2008 18:09, Matthias Pospiech wrote:

> I now created my own SpectrogramData version. But in the end I found out
> that SpectrogramData fails to use my own values in the value function.

Your implementation of copy returns an uninitialized data object - not a 
clone. 

I recommend to use one of the Qt containers (f.e QVector or QList ) instead of 
the plain double arrays. These containers implicitely share your data, what 
makes copying an unexpensive operation and the handling of the memory is much 
easier. Especially if you don't feel comfortable with C/C++, you should use 
them.

Uwe

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Gmane