# How to listen to mouse left button click event on slicerview

**URL:** <https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724>\
**Category:** Development\
**Created:** [July 21, 2023, 8:41am UTC](https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724 "2023-07-21T08:41:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [July 21, 2023, 8:41am UTC](https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724/1 "2023-07-21T08:41:55Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/0/c08fdfe1c16d51c3d4af7f4a351e7aad15c21436.jpeg)  
The requirement I received is to add mouse left click event listening only on the green window,then record the volume position information in a list,i don’t known how to add mouse left click event listening only on the green window

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 21, 2023, 2:00pm UTC](https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724/2 "2023-07-21T14:00:12Z")

</div>

You would normally not want to intercept user interaction events, as it would interfere would higher-level processing of the events. Instead, you can create a markup node and activate placement mode. See how it is done in the non-AI segmentation mode of lung CT segmentation module in [LungCTAnalyzer extension](https://github.com/rbumm/SlicerLungCTAnalyzer/).

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [July 23, 2023, 7:10am UTC](https://discourse.slicer.org/t/how-to-listen-to-mouse-left-button-click-event-on-slicerview/30724/3 "2023-07-23T07:10:42Z")

</div>

Wow,It’s really a really nice solution that I didn’t think of,Thank you lassoan!
