From: kgv Date: Sat, 16 Oct 2021 09:22:12 +0000 (+0300) Subject: 0032626: Samples - add Qt::WA_NativeWindow attribute to Qt IESample X-Git-Tag: V7_6_0~19 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4e61131a1c2b196c359a75ea3a57082b3b2c637c;p=occt.git 0032626: Samples - add Qt::WA_NativeWindow attribute to Qt IESample --- diff --git a/samples/qt/Common/src/View.cxx b/samples/qt/Common/src/View.cxx index 6d7641940b..60e11610db 100755 --- a/samples/qt/Common/src/View.cxx +++ b/samples/qt/Common/src/View.cxx @@ -95,6 +95,7 @@ View::View( Handle(AIS_InteractiveContext) theContext, QWidget* parent ) myCurZoom = 0; setAttribute(Qt::WA_PaintOnScreen); setAttribute(Qt::WA_NoSystemBackground); + setAttribute(Qt::WA_NativeWindow); myDefaultGestures = myMouseGestureMap; myCurrentMode = CurAction3d_Nothing; @@ -106,8 +107,6 @@ View::View( Handle(AIS_InteractiveContext) theContext, QWidget* parent ) setBackgroundRole( QPalette::NoRole );//NoBackground ); // set focus policy to threat QContextMenuEvent from keyboard setFocusPolicy( Qt::StrongFocus ); - setAttribute( Qt::WA_PaintOnScreen ); - setAttribute( Qt::WA_NoSystemBackground ); init(); }