[Qt-interest] 2D Area Chart

Uwe Rathmann Uwe.Rathmann at tigertal.de
Tue Jan 13 21:42:01 CET 2009


Arnold Krille wrote:

>> You may have a look at the QWT package.
>> *qwt*.sourceforge.net/
> 
> Which won't help you when you want a view on a model...

IMHO a model is no good design decision for displaying large datasets at
all. I would write a model and a QwtData interface ( both are abstract APIs
to the data, but QwtData is tailored for series of points ) - both sitting
on same structure, where the real data is.

If you don't have many points you can accept the overhead of accessing the
data through 2 abstract APIs and simply write a couple of lines, that bind
your model to a QwtData object. I guess these are below 50 lines of code,
what should be easier, than implementing your own plot widget from scratch.

Uwe




More information about the Qt-interest-old mailing list