Trying to integrate qSlicerMarkupsPlaceWidget into app

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 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

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: