From: Jean-Philippe ARGAUD Date: Mon, 21 Nov 2016 20:17:48 +0000 (+0100) Subject: Correction for Qt5/Eficas/Adao/Salome embedded frames compatibility X-Git-Tag: V8_2_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae4fb4942f7c63f9893bb56c07189cd33e8125eb;p=modules%2Fadao.git Correction for Qt5/Eficas/Adao/Salome embedded frames compatibility --- diff --git a/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py b/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py index c44f064..037b320 100644 --- a/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py +++ b/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py @@ -106,7 +106,9 @@ class AdaoCaseManager(EficasObserver): # Creation du viewer QT # Scroll Widget (pour les petites resolutions) area = QScrollArea(SalomePyQt.SalomePyQt().getDesktop()); - area.setWidget(self.eficas_manager) + from PyQt5.QtWidgets import QGridLayout + gridLayout = QGridLayout(area) + gridLayout.addWidget(self.eficas_manager) area.setWidgetResizable(1) wmType = "ADAO View" self.eficas_viewId = sgPyQt.createView(wmType, area)