Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve nesting of containers with labels (group box) #317

Open
aeisenbarth opened this issue Nov 13, 2021 · 2 comments
Open

Improve nesting of containers with labels (group box) #317

aeisenbarth opened this issue Nov 13, 2021 · 2 comments

Comments

@aeisenbarth
Copy link
Contributor

Sometimes you want to structure user interfaces by grouping widgets. Currently when adding two containers A and B to a Napari dock (a parent container), the widgets in the nested containers are displayed in a continuous flow and the grouping is not recognizable by users.

A possibility is to set a label for A and B and enable label display on the parent container. However, as with normal widgets, Container labels are displayed on the left, squeezing the container content to the right. In this example, Segmentation is a container with vertical layout for which I would like to have the container's label displayed above its content and the container separated by a border from other widgets. Shape is also a container (horizontal layout), as an example that the current behavior can also be desirable to keep.

It would be nice to have something like QGroupBox which could either be its own magicgui widget or an option for Container.

@michaels10
Copy link

michaels10 commented Aug 22, 2022

Came up for me too. Any news on fixing this?

@ndxmrb
Copy link

ndxmrb commented Sep 6, 2024

Hi,
I'd love to have this feature as well.

In case anyone using pydantic models is wondering how to get what is shown above in the first place, please refer to this post and/or #669.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants