openDialog does not load node into scene

mholden8
Tue, 14 Jun 2022 20:02:04 +0000
Development

When using the openDialog function in the Slicer IO Manager, the selected node is not loaded into the scene.

For example, when I run the code below (see Documentation/Nightly/Developers/IO - Slicer Wiki), nothing happens after selecting a volume file to load.

 io = slicer.app.ioManager()
 params = {}
 io.openDialog("VolumeFile", slicer.qSlicerFileDialog.Read, params)

Is there a new preferred way to load files using a registered dialog?

Slicer version: 5.1.0-2022-05-16
OS: Windows 10

3 posts - 2 participants