]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correction for Qt5/Eficas/Adao/Salome embedded frames compatibility
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 21 Nov 2016 20:17:48 +0000 (21:17 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 21 Nov 2016 20:17:48 +0000 (21:17 +0100)
src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py

index c44f064af703756ba70929755a1457bfa986b150..037b320d7b1629933ec6f81e3701426d1196a5d6 100644 (file)
@@ -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)