Adding a widget with Qt Designer to custom module is not functional

I could not get a qMRMLNodeComboBox to work in a custom module created by Extension Wizard.

It is added to the module’s UI with Qt Designer and its nodeTypes property set to vtkMRMLScalarVolumeNode. The attached screenshot shows that the appended qMRMLNodeComboBox is always disabled, and above all, is never populated.

Whether the appended qMRMLNodeComboBox is added to updateGUIFromParameterNode and to updateParameterNodeFromGUI does not help.

Qt Designer is helpful to design UI, but I could not get it to work. Please see this link for the test module used here, and advise about a fix.

Regards.

I think that is usually the case when you haven’t set the mrmlScene to the mrml widget. See https://github.com/Slicer/Slicer/blob/36f626ac5dabad2052da1e429b4565034a2726bb/Utilities/Templates/Modules/Scripted/TemplateKey.py#L117-L120

Yes, now it works, will have to discover other hidden features of Qt Designer. Thank you.