spacr.qt.widgets.card

Card — QFrame with rounded border, optional title bar, and a body widget.

Consumers add content to card.body_layout (a QVBoxLayout).

Module Contents

class spacr.qt.widgets.card.Card(title: str = '', subtitle: str = '', parent=None)[source]

Bases: PySide6.QtWidgets.QFrame

Rounded-border container with optional title/subtitle and a body area.

Consumers add content to body_layout.

Parameters:
  • title – optional heading rendered above the body.

  • subtitle – optional muted subheading rendered under the title.

Variables:
  • body – inner QWidget that holds the body layout.

  • body_layout – QVBoxLayout consumers add widgets to.

body[source]
body_layout[source]