tags:

views:

979

answers:

4

I need to implement some plot like that or that in my app , it can be even something similar.

I made a search on Qt web site with no progress , and i saw Qwt package but nothing similar there .

Any ideas ?

Thanks a lot .

A: 

Qt has no support for plotting out of the box.

The most basic solution is to use QGraphicsView. Simply render your plot using the various items.

Other than that, you can follow this thread. It contains a couple of pointer to plotting frameworks but I don't know how useful they are or whether they are still supported in Qt 4.x.

Aaron Digulla
A: 

OpenGL is an excellent graphics drawing language in which you can implement something like this, and it is widely supported.

http://www.opengl.org/

Alex Brown
+2  A: 

I'm using Qwt for that. The trick is to use a step function (see last example by this link), and shift the data by 0.5, so that bars will be centered to ticks. Here is an example of what you can get with alpha blending and anti-aliasing enabled: my histogram. Hope, you will do even better ;-)

MadH
+5  A: 

I strongly recommend Qwt.

Qwt is a mature, well-documented library and, I think it's fair to say, the standard solution for implementing plots and other display and control widgets in Qt.

If you need 3D plots, try QwtPlot3D.

Sam Dutton