From: rnv Date: Fri, 1 Jul 2016 12:14:05 +0000 (+0300) Subject: Fix flickering in the OCC Viewer. X-Git-Tag: V8_1_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef3a24e6ace039b31baf2569121f6f90c195a967;p=modules%2Fgui.git Fix flickering in the OCC Viewer. --- diff --git a/src/OCCViewer/OCCViewer_ViewPort.cxx b/src/OCCViewer/OCCViewer_ViewPort.cxx index 0ce25d0df..d6cca3173 100755 --- a/src/OCCViewer/OCCViewer_ViewPort.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort.cxx @@ -218,7 +218,7 @@ void OCCViewer_ViewPort::initialize() setBackgroundRole( QPalette::NoRole );//NoBackground ); // set focus policy to threat QContextMenuEvent from keyboard setFocusPolicy( Qt::StrongFocus ); -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) && OCC_VERSION_LARGE < 0x07000000 +#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0) && OCC_VERSION_LARGE < 0x07000000) || QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) setAttribute( Qt::WA_PaintOnScreen ); #endif setAttribute( Qt::WA_NoSystemBackground );