# About the right click on mainwindow's toolbar

**URL:** <https://discourse.slicer.org/t/about-the-right-click-on-mainwindows-toolbar/16644>\
**Category:** Development\
**Created:** [March 19, 2021, 3:26pm UTC](https://discourse.slicer.org/t/about-the-right-click-on-mainwindows-toolbar/16644 "2021-03-19T15:26:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qin](https://avatars.discourse-cdn.com/v4/letter/q/91b2a8/32.png) [@qin](https://discourse.slicer.org/u/qin)\
**Post date:** [March 19, 2021, 3:26pm UTC](https://discourse.slicer.org/t/about-the-right-click-on-mainwindows-toolbar/16644/1 "2021-03-19T15:26:14Z")

</div>

Operating system:windows10 64 bit  
Slicer version:4.11  
Expected behavior:  
Actual behavior:  
When i was right clicked the toolbars on mainwindow, a menu manager the toolbars like ‘module panel’,‘load/save’…was poped up. And i want to know where is code about the event on slicer source code…

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [March 19, 2021, 5:42pm UTC](https://discourse.slicer.org/t/about-the-right-click-on-mainwindows-toolbar/16644/2 "2021-03-19T17:42:47Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/9/e97bb1c03ca8a01d438cb46e3403d5212aae073d.png)  
This is controlled by Qt which is the GUI framework dependency used by Slicer. Therefore it is not something in the Slicer source code.

You can see information about a QMainWindow’s toolbar pop-up menu at: [https://doc.qt.io/qt-5/qmainwindow.html#createPopupMenu](https://doc.qt.io/qt-5/qmainwindow.html#createPopupMenu)

---

<div class="post-metadata">

**Author:** ![qin](https://avatars.discourse-cdn.com/v4/letter/q/91b2a8/32.png) [@qin](https://discourse.slicer.org/u/qin)\
**Post date:** [March 23, 2021, 6:02am UTC](https://discourse.slicer.org/t/about-the-right-click-on-mainwindows-toolbar/16644/3 "2021-03-23T06:02:58Z")

</div>

thanks for your help!
