Closed omar-moreno closed 1 year ago
QT visualization is already an option with slic.
@normangraf How do you enable it? Even when I build with the visualization enabled, it doesn't add G4OpenGLStoredQt
to the graphics system.
Specifically, I set the following when issuing the cmake
command and the above class doesn't get added to the graphics system
-DWITH_GEANT4_UIVIS=ON
I have verified that it enters the following loop in the Geant4.cmake macro
if(WITH_GEANT4_UIVIS)
¦ find_package(Geant4 QUIET COMPONENTS ui_all vis_all)
but it doesn't seem to make a difference.
I have also verified that using different versions of Geant4 doesn't make a difference. Also, if I run the stand alone Geant4 visualization examples, QT visualization works fine.
The following code will be added to SlicApplication:
The VIS flag can be set during configuration as follows
This will allow us to visualize detectors using QT as shown below: