Skip to content

Patterns

Common usage patterns and best practices for building with the QualCoder Design System.

Overview

Pattern Description
Signals Qt signal-based interactivity
Theming Color customization and themes
Composition Building complex layouts

Quick Reference

Signal Connections

button.clicked.connect(handler)
table.row_clicked.connect(lambda idx, data: handle(idx))
search.text_changed.connect(filter_results)

Theme Switching

from design_system import set_theme, get_theme

set_theme("dark")
current = get_theme()

Container Composition

card = Card()
card.add_widget(CardHeader(title="Section"))
card.add_widget(Label("Content"))
card.add_widget(Button("Action", variant="primary"))