PDA

View Full Version : QwtPlotOpenGLCanvas + Zooming, huge delays when Widget is fullscreen



r2com
17th August 2016, 19:21
Using the QwtPlotOpenGLCanvas now.
just addition of this line:

QwtPlotZoomer * zoomer = new QwtPlotZoomer( plotCanvas, true);

Already gave me the needed minimum zooming capabilities.

One note though... unfortunately, lets say when I full-screen the whole app, and mark the zoom rectangle, there is a delay of about ~1s before the zoom occurs. Not sure why there is such huge delay? The plot only contains like 5-6 points...

Any ideas?

Uwe
18th August 2016, 13:51
QOpenGLWidget is not very good in combination with regular widgets - it is even buggy as regular widgets on top are not updated properly. In your case the rubber band is such a regular widget.

I also remember, that moving a rubber band in a modified version of the bode example was pretty slow, because of the updates on the status bar.

Uwe

r2com
18th August 2016, 15:30
Well, I tried the old QwtPLotGLCanvas, the zooming was faster, but it had different issues:

* Screen glitches when zooming sometimes
* The tracker pen fonts messed up

Picture attached...

12080