i used profiler, i saw that my program spend the most time in the function "drawLines( QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to ) const", and there is an increase of microprocessor until 20 %. Please how i can resolve this problem.