How to plot a graph in Qt without using QWT
Hi,
i want to draw an X-Y plot using Qt libraries..
can anyone tell me how can i acheive this…
i know that it can be done using QWT, but want to do it in Qt..
please help me..
thanx in advance…
11 replies
Did you transform the painter in any way? Are you using widget local coordinates? Have you considered any border you have drawn?
C++ GUI Programming with Qt 4 (First Edition), which is available for free at the link found in my previous post, has a chapter about custom widgets using the example of a plot widget, which supports zooming and scaling.
Hi!
I also want to plot graphs, but I don’t want to make a new program because there are already good ones and I don’t have the level to make something better.
The approach I will probably take is using SciDAVis [scidavis.sourceforge.net], which is written in Qt and has a plugin interface.
I let you know this in case it’s useful, but I suppose you want to write your own.
Regards
Hi,
Sorry, I thought it was a good idea, but I’ve seen that SciDAVis plugin capabilities can be found only in the bleeding edge version (0.3.0). Here you can see that version’s classes [scidavis.sourceforge.net].
Regards
Hi!
Perhaps you still find it interesting: http://www.workslikeclockwork.com/index.php/components/qt-plotting-widget/
It isn’t QWT and seems very customizable.
Take care
Mosaic also has some plotting components [mosaicsoftware.net] you might be interested in.
You must log in to post a reply. Not a member yet? Register here!




