Le 08/10/2017 à 18:57, pdv a écrit :
The new code contains twice a viewport()->update() without specification of a rectangle. Since > Qt normally erases the widget's area before the paintEvent() call I guess that the whole viewport is erased. Subsequently only part of it is redrawn except for the case FullScreenUpdate and in that case there is no problem.

Actually, we use
        viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
to ask Qt not to overwrite it. It seems to work on Linux.

Please feel free to look at the code and docs (QWidget and QAbstractScrollArea) and tell us what I may have missed. I just saw that we should override viewportEvent() instead of event(), but I am not sure that it would make a difference.

Can you compile master? Do you see the issue?

JMarc

Reply via email to