triplus wrote: ↑Fri May 10, 2019 4:07 pm
Qt 6 has plans for further bringing QML/Qt 3D together. That i guess would allow us to have a rather good control over FreeCAD viewport and beyond.
At the time of writing of this post we are only providing a QML API, but the goal in the future is to provide a public C++ API as well.
Yes, this is an interesting aspect. Currently more or less no FreeCAD developer uses QML, having an option to use C++ would therefore certainly help. Maybe some day Python will get supported too (similar to the Pivy and Coin3D situation).
4 views of the same Teapot scene. Also changing between 3 Cameras in the Perspective view.
Yes, currently FreeCAD user interface is Qt Widgets based and Coin3D is used for viewport purposes. Likely things will stay like that in foreseeable future. Hence we are having a more theoretical discussions, on what could be used, if FreeCAD would need to migrate, due to some i guess emerged technical issues. Like Qt dropping Qt Widgets or Coin3D not being able to support some emerging technology (graphics API). The above blog post is therefore talking about one possible option, that is to use Qt Quick for creating the user interface and mentioned new high level API (API utilizing Qt 3D) for the 3D viewport purposes. Currently (Qt 6) still less powerful, compared to utilizing the Qt 3D directly, but more straightforward and integrated in Qt Quick.