Hello.

I have QwtPlot at which I have f.e. 6 curves and each curve consist of many points ( f.e. near 1000 samples )...

Than I want to draw when I move mouse some rectangle with information, for this I use QwtPlotOverlay at which I draw this info...

But there is some lags when I move mouse and draw info. If I chagne number of sampels for each curve f.e. to 500, than it work good...
All my info and rectangle I draw with help of QPainter...

Why there is so bad performance? In example ItemEditor in Qwt all is good even if I set more shapes, but in my case performance depends on what are drawing at QwtPlot. What can be wrong?