ifcopenshell_examples icon indicating copy to clipboard operation
ifcopenshell_examples copied to clipboard

Qt6 update

Open wolfboyyang opened this issue 8 months ago • 2 comments

I tried to update everything related to qt to pyside6 based on my commit on main and try to make it clear. For pyside6, almost everything is OK, although the select by pick with id is not function properly yet. For pyqt6, IFCQt3DView/QIFCViewer is not working, others is same with pyside6.

When I give pyqt6 a try, I found pyqt6 is broken[1] when I installed occ (via pythonocc-core).

  1. by broken as it give the following error:
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

and you could use the following to fix the path to use pyqt6 without remove occ.

import os
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = "path/to/qt6/micromamba/envs/bim-pyqt6/lib/python3.11/site-packages/PyQt6/Qt6/plugins/platforms"

but for QIFCViewer.py it would give different error which I haven't resolved yet

Unable to find renderer plugin for rhi

wolfboyyang avatar Oct 31 '23 16:10 wolfboyyang

I recently started trying the Qt6 update. I've succeeded to compile all examples that are NOT the viewer. They are now in a separate branch.

stefkeB avatar Apr 08 '24 09:04 stefkeB

pyside 6.6 with python 3.12 is ok on mac m1 while when I try pyside==6.7, the geometry is not shown, which needs further check.

wolfboyyang avatar Apr 12 '24 10:04 wolfboyyang