From ae4fb4942f7c63f9893bb56c07189cd33e8125eb Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Mon, 21 Nov 2016 21:17:48 +0100 Subject: [PATCH] Correction for Qt5/Eficas/Adao/Salome embedded frames compatibility --- src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2