From ef3a24e6ace039b31baf2569121f6f90c195a967 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 1 Jul 2016 15:14:05 +0300 Subject: [PATCH] Fix flickering in the OCC Viewer. --- src/OCCViewer/OCCViewer_ViewPort.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.2