We already have a surgical device application built with Qt 6.2 + QML (using C++ and JavaScript), and we’re looking for integrating some of the 3D Slicer UI modules or UI views as part of our UI, without building/running the standalone Slicer application. Is it possible to do that? We have been digging in github/forum/document for a few days and couldn’t find any information covering this scenario. Thank you for your time!
It might eventually be possible, but for now Slicer uses Qt 5.x and won’t port to Qt 6.x until upstream libs are all ported (VTK, PythonQt, CTK). Once that’s working you should be able to mix and match C++ code, but some parts of Slicer is in python so you might end up needing some work to make it happen.
Slicer users classic QWidget based widgets. You can mix these widgets and QML based regions in a single application.
There is also a QML-based VTK render widget, but it would take some effort to reimplement view and layout classes using this class.
Any luck to get this working?
In the next few weeks, we should have the Qt6 integration finalized and will transition the “Preview” build of Slicer to build against it.
Where are you on the integration?