# qSlicerMarkupsPlaceWidget().deleteButton signal/slot?

**URL:** <https://discourse.slicer.org/t/qslicermarkupsplacewidget-deletebutton-signal-slot/8313>\
**Category:** Support\
**Created:** [September 5, 2019, 5:35pm UTC](https://discourse.slicer.org/t/qslicermarkupsplacewidget-deletebutton-signal-slot/8313 "2019-09-05T17:35:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)\
**Post date:** [September 5, 2019, 5:35pm UTC](https://discourse.slicer.org/t/qslicermarkupsplacewidget-deletebutton-signal-slot/8313/1 "2019-09-05T17:35:50Z")

</div>

Hi!

I am using `slicer.qSlicerMarkupsPlaceWidget()` in my scripted module. I give the user an option to delete the placed point by making the `deleteButton` active. I would like to emit a signal when the delete button is pressed in order to clear a coordinate widget that displays the fiducial coordinates relative to MCP.

Is there a signal/slot for the `deleteButton()`?

Thanks,  
Greydon

---

<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:** [September 5, 2019, 6:33pm UTC](https://discourse.slicer.org/t/qslicermarkupsplacewidget-deletebutton-signal-slot/8313/2 "2019-09-05T18:33:50Z")

</div>

There are various ways to delete a markup (e.g., hover over the markup and hit Delete), so I would not recommend to observe delete button click. Instead, you can observe changes in the MRML node.

---

<div class="post-metadata">

**Author:** ![Greydon\_Gilmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/greydon_gilmore/32/6863_2.png) [@Greydon\_Gilmore](https://discourse.slicer.org/u/Greydon_Gilmore)\
**Post date:** [September 11, 2019, 1:58am UTC](https://discourse.slicer.org/t/qslicermarkupsplacewidget-deletebutton-signal-slot/8313/3 "2019-09-11T01:58:33Z")

</div>

That will work! Thank you.
