qSlicerMarkupsPlaceWidget().deleteButton signal/slot?


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


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.

That will work! Thank you.

1 Like