SlicerCustomAppTemplate icon indicating copy to clipboard operation
SlicerCustomAppTemplate copied to clipboard

Cannot hide the module panel dock widget on start up

Open benzwick opened this issue 9 months ago • 0 comments

I am trying to develop a Slicer Custom App without a module panel.

I tried to add the following code to qTalk2ViewAppMainWindowPrivate::setupUi:

  this->PanelDockWidget->setVisible(false);

but the module panel is still visible.

I can hide it manually after the app is running using this Python code inside Home.py's setSlicerUIVisible function

        # Module panel
        modulePanelDockWidget = slicer.util.mainWindow().findChild('QDockWidget','PanelDockWidget')
        modulePanelDockWidget.setVisible(visible)

However, it is always shown on startup.

benzwick avatar Mar 23 '25 07:03 benzwick