[Qt-interest] 2D Area Chart

Arnold Krille arnold at arnoldarts.de
Tue Jan 13 12:51:25 CET 2009


On Tuesday 13 January 2009 07:37:31 Ankit Agarwal 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...

> On Tue, Jan 13, 2009 at 12:03 PM, Jose Victor Reynoso <
> jose.reynoso at vorticer.com.mx> wrote:
> > One question, someone know which is the best Qt tool to paint 2D area
> > chart like this:
> > My approach was to use a QPainterPath::addRect() function in small
> > intervals,  but I don´t think is the best way to do it. Any advice...

Have a look at QPolygon (which is basicly a QList of QPoints). Then you can 
use the pen and brush as with the rect-solution.

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090113/d0bb0180/attachment.bin 


More information about the Qt-interest-old mailing list