Hello,
I added a “qMRMLVolumeThresholdWidget” in my module thanks to qt designer.
But the slider is grey and i can’t modify the Threshold.
How can i interact with a widget this type ?
Thanks for your help
Hello,
I added a “qMRMLVolumeThresholdWidget” in my module thanks to qt designer.
But the slider is grey and i can’t modify the Threshold.
How can i interact with a widget this type ?
Thanks for your help
qMRMLVolumeThresholdWidget inherits from qMRMLVolumeWidget which requires a MRML volume to be set.
# Get a node from SampleData that we will clone
import SampleData
volume_node = SampleData.SampleDataLogic().downloadMRHead()
volume_threshold_widget = slicer.qMRMLVolumeThresholdWidget()
volume_threshold_widget.setMRMLVolumeNode(volume_node)
volume_threshold_widget.show()