[Qt-interest] What to use as a base class for histogram classes?
Eric Clark
eclark at ara.com
Mon Sep 21 21:06:41 CEST 2009
We have used the Qwt library before and it has a lot of really neat widgets
in it. Some really good graphing widgets like what you are trying to do. If
you can't find what you need there, I would stick to reading the stuff on
QGraphicsView.
Eric
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Stephen Jackson
> Sent: Monday, September 21, 2009 2:03 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] What to use as a base class for histogram
> classes?
>
> On Mon, Sep 21, 2009 at 7:47 PM, James Matta wrote:
> > I am working on writing a data analysis tool for my research and I
> need to
> > be able to display 1D and 2D histograms (see attachments for
> examples).
> > Users need to be able to do things like click within the histogram
> and have
> > the position recorded (so that they can give initial values for peak
> fits,
> > identify channel number/ number of counts etc more finely than the
> scale
> > might give, highlight regions of interest, etc.)
> >
> > My first thought was to subclass out of QPainter or QPaintDevice or
> one of
> > their subclasses; but, I am uncertain of whether or not this is the
> best
> > choice, or even if it is a good choice. I would appreciate any advice
> that
> > you might have on the subject.
> >
>
> Have you looked at the Qwt library? http://qwt.sourceforge.net/
>
> There is a screenshot of a histogram.
> http://qwt.sourceforge.net/histogramscreenshots.html
>
> If it doesn't do exactly what you want, I think you should get some
> good ideas from it.
>
> --
> HTH,
>
> Stephen Jackson
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list