Closed gnthibault closed 6 years ago
please use PySide2 instead of PyQt5. Mixing PyQt5 and PySide2 is not a good idea.
I tried it and get:
AttributeError: 'PySide2.QtWidgets.QMdiArea' object has no attribute 'addWindow'
Traceback (most recent call last):
File "test_fc_env.py", line 57, in closeEvent
self._mdiArea.closeAllWindows()
AttributeError: 'PySide2.QtWidgets.QMdiArea' object has no attribute 'closeAllWindows'
this are some qt5 changes: QMdiArea.addWindow -> QMdiArea.addSubWindow QMdiArea.closeAllWindows -> QMdiArea.closeAllSubWindows
Now everything works like a charm, I can now really try to learn of this wonderful software really works. Many thanks for your help.
Dear all,
I tried to port one of the code from this page: https://www.freecadweb.org/wiki/Embedding_FreeCADGui from PyQt4 to PyQt5 (result file attached).
Unfortunately, I got a segmentation fault whenever I try to use call a FreeCAD python binding.
Are you experiencing the same with this code on conda environment ?
Thank you in advance for your help