Skip to content

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

Open
@aeisenbarth

Description

@aeisenbarth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions