KitwareMedical / KitwareMedical/SlicerCustomAppTemplate
Cannot hide the module panel dock widget on start up
- Dominant language
- C++
- Stars
- 71
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
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
```python
# Module panel
modulePanelDockWidget = slicer.util.mainWindow().findChild('QDockWidget','PanelDockWidget')
modulePanelDockWidget.setVisible(visible)
```
However, it is always shown on startup.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing qTalk2ViewAppMainWindowPrivate::setupUi and the creation of PanelDockWidget, then compare that startup path with Home.py's setSlicerUIVisible function. Confirm why setVisible(false) is overridden or ineffective during initialization; done means the module panel is hidden when the custom application first opens.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100