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 .
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.
OpenGL is an excellent graphics drawing language in which you can implement something like this, and it is widely supported.
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 ;-)
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.