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?
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).