# Running SlicerCAT with user defined toolbars and menues

**URL:** <https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943>\
**Category:** Development\
**Created:** [April 5, 2021, 5:28am UTC](https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943 "2021-04-05T05:28:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oren](https://avatars.discourse-cdn.com/v4/letter/o/ecd19e/32.png) [@oren](https://discourse.slicer.org/u/oren)\
**Post date:** [April 5, 2021, 5:28am UTC](https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943/1 "2021-04-05T05:28:29Z")

</div>

Hi  
I am trying to define the Slicer toolbar (‘Favorites’ toolbar)  
I have edit ‘CMakeLists.txt’:  
set(Slicer\_DEFAULT\_FAVORITE\_MODULES “Crop Volume, SegmentEditor”)

as described in

> **[SlicerCAT: Creating custom applications based on 3D Slicer - Kitware Blog](https://blog.kitware.com/slicercat-creating-custom-applications-based-on-3d-slicer/)**
>
> This blog presents a framework for making custom applications based on 3D Slicer. What is 3D Slicer? 3D Slicer is a software platform for the ... Read More

I have build the project using visual studio (Windows)  
and run the executable:  
\<Slicer\_BUILD\>/Slicer-build/Slicer.exe

but the SlicerCAT was just the same as before  
‘Favorites’ tool bar just did not changed - It has all the default modules !

what am I missing ?  
It looks like changing ‘CMakeLists.txt’ and qCustomAppNameAppMainWindow.cxx has no affect on the display of the SlicerCAT

thanks  
Oren

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [April 5, 2021, 12:30pm UTC](https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943/2 "2021-04-05T12:30:36Z")

</div>

Hi:

Did you reconfigure and re-run the top level build after changing the CMakeLists file?

Also, if you have already run the application before changing it, it may have stored the favorite modules in the settings, and used the user settings instead of the default modules list. From the window menu, got to Edit-\>Application Settings-\>Modules, and click the ‘restore defaults’ button at the bottom of the window.

---

<div class="post-metadata">

**Author:** ![oren](https://avatars.discourse-cdn.com/v4/letter/o/ecd19e/32.png) [@oren](https://discourse.slicer.org/u/oren)\
**Post date:** [April 5, 2021, 5:29pm UTC](https://discourse.slicer.org/t/running-slicercat-with-user-defined-toolbars-and-menues/16943/3 "2021-04-05T17:29:00Z")

</div>

I think you have solved my problem  
It looks like SlicerCAT have read the setting from the old user setting file

thank you !
