# Trying to integrate qSlicerMarkupsPlaceWidget into app

**URL:** <https://discourse.slicer.org/t/trying-to-integrate-qslicermarkupsplacewidget-into-app/19644>\
**Category:** Development\
**Tags:** python\
**Created:** [September 13, 2021, 1:02pm UTC](https://discourse.slicer.org/t/trying-to-integrate-qslicermarkupsplacewidget-into-app/19644 "2021-09-13T13:02:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shatz](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@shatz](https://discourse.slicer.org/u/shatz)\
**Post date:** [September 13, 2021, 1:02pm UTC](https://discourse.slicer.org/t/trying-to-integrate-qslicermarkupsplacewidget-into-app/19644/1 "2021-09-13T13:02:42Z")

</div>

Any tutorials on how to integrate fiducials into our app? I clearly dont know the “proper” way to do this but I was just trying to follow how the [Lung CT segmenter module](https://github.com/rbumm/SlicerLungCTAnalyzer/tree/master/LungCTSegmenter) did it (while cutting out a lot of fat that I dont need, as I only need 1 fiducial), and I cant seem to get it to work.

Is there a minimal example of these working? If not, does this error tell anyone more than it tells me: `void qSlicerMarkupsPlaceWidget::setPlaceModeEnabled(bool) activate failed: Markups module logic, scene, or interaction node is invalid`

---

<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 13, 2021, 1:45pm UTC](https://discourse.slicer.org/t/trying-to-integrate-qslicermarkupsplacewidget-into-app/19644/2 "2021-09-13T13:45:27Z")

</div>

Before using any MRML widgets, you need to set the scene in the widget. It is commonly done using a signal/slot in Qt Designer (connecting the module widget’s `mrmlSceneChanged(vtkMRMLScene*)` signal to the MRML widget’s `setMRMLScene(vtkMRMLScene*)` slot), but you can do it by a method call in the module widget’s `setup` method, too.

You can find a simpler, less interactive seed placement example in VMTK’s vesselness filtering module:

> <https://github.com/vmtk/SlicerExtension-VMTK/blob/master/VesselnessFiltering/VesselnessFiltering.py#L97-L109>
