PDA

View Full Version : how to get painter for QwtScaleDraw function?



josentop
13th October 2011, 16:21
I derived a class from QwtScaleDraw and add a function to draw the scale in real time, but the function can't use QPainter *painter to draw the scale due to it only can be used with paintevent. how can i draw the scale same as QwtPlot's QwtPlotDriectPainter method in real time? thanks.

Uwe
13th October 2011, 16:52
Read the code of QwtPlotDirectPainter and do the same in your code,

Uwe