16 Apr 19:38
Re: Help with understanding QwtRasterData needed
From: Uwe Rathmann <Uwe.Rathmann <at> tigertal.de>
Subject: Re: Help with understanding QwtRasterData needed
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 17:38:20 GMT
Subject: Re: Help with understanding QwtRasterData needed
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-04-16 17:38:20 GMT
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
RSS Feed