Hello everyone, I’m trying to add a new qMRMLNodeComboBox in my extension. However it seems doesn’t work. Like this:
In the .ui file,
<widget class="qMRMLNodeComboBox" name="SeedsNodeSelector">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Select the seed point to refine</string>
</property>
<property name="nodeTypes">
<stringlist>
<string>vtkMRMLMarkupsFiducialNode</string>
</stringlist>
</property>
<property name="showChildNodeTypes">
<bool>false</bool>
</property>
<property name="noneEnabled">
<bool>true</bool>
</property>
</widget>
When I set the property “enabled” as True, it got nothing in list.
My code about it has been shown below:
self.ui.SeedsNodeSelector.connect("currentNodeChanged(vtkMRMLNode*)", self.updateParameterNodeFromGUI)
self._parameterNode.SetNodeReferenceID("SeedPoints", self.ui.SeedsNodeSelector.currentNodeID)
self.ui.SeedsNodeSelector.setCurrentNode(self._parameterNode.GetNodeReference("SeedPoints"))
How to deal with it?
Thanks for any help!