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.