Where can I find code for functionalities like segmentation, registration etc

Dear 3D slicer family.

I am learning the codebase for learning purpose, I learned some UI implementation techniques, but I want to create a toggle button in segmentation or in functionality tools section so that it initially hides some of the tools. so can anyone please tell me where can I find the code for same, also an idea to complete the task?

Thank you.

It is a very common need to customize the Slicer GUI to make it easy to perform specific workflows. Slicer uses Qt as GUI toolkit, so all you need to do is to learn how to hide widgets in Qt (basically get the widget and call hide() method) or design custom GUI layouts (you can use Qt designer for this - it is bundled with 3D Slicer).

I would recommend to get started with programming Slicer using the PerkLab bootcamp Slicer programming tutorial and complete a few online Qt tutorials.

1 Like