[Qt-interest] What to use as a base class for histogram classes?

James Matta jamesmatta at gmail.com
Mon Sep 21 20:47:15 CEST 2009


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.

Thanks in advance.

Cheers,
--
James Matta
University of Notre Dame
Physics Department
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090921/f3b2d16f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1D_Histogram.PNG
Type: image/png
Size: 31787 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090921/f3b2d16f/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2D_Histogram.png
Type: image/png
Size: 7378 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090921/f3b2d16f/attachment-0001.png 


More information about the Qt-interest-old mailing list