PDA

View Full Version : Overlaoding trackerText to show dates



Carlton
20th October 2010, 00:12
I have been searching though the Qwt examples for an example of overloading the QwtPlotPicker::trackerText function without any luck.
I assume I need to create my own picker which is a sub class of QwtPlotPicker, then replace the trackerText function with my own. I need to convert the X- axis vales back from uint's to QDates
thanks.

davey
4th November 2010, 01:38
you can in your sub-class overload:

virtual QwtText trackerText(QPoint const &pos) const;