Components¶
The QualCoder Design System provides 180+ reusable components organized into functional categories.
Component Categories¶
| Category | Components | Description |
|---|---|---|
| Core | Button, Input, Label, Card, Badge, Alert, Avatar, Chip | Fundamental UI elements |
| Icons | Icon, IconText | Material Design Icons |
| Layout | AppContainer, Panel, Sidebar, Toolbar | Application structure |
| Forms | SearchBox, Select, Textarea, ColorPicker | User input |
| Navigation | Tab, TabGroup, Breadcrumb, NavList | Navigation patterns |
| Data Display | DataTable, CodeTree, InfoCard, KeyValueList | Data presentation |
| Lists | FileList, CaseList, AttributeList, QueueList | Collection displays |
| Media | VideoContainer, Timeline, PlayerControls | Media playback |
| Chat & AI | MessageBubble, ChatInput, CodeSuggestion | AI interface |
| Document | TextPanel, TranscriptPanel, SelectionPopup, TextColor | Document handling |
| Feedback | Spinner, Toast, ProgressBar | User feedback |
| Visualization | ChartWidget, NetworkGraph, WordCloud | Data visualization |
| Pickers | TypeSelector, ColorSchemeSelector | Selection widgets |
| Advanced | Modal, ContextMenu, CodeEditor, Pagination | Complex components |
Import Patterns¶
Individual Imports¶
Category Imports¶
from design_system import (
# Core
Button, Input, Label, Card, Badge, Alert,
# Layout
AppContainer, Panel, Sidebar,
# Forms
SearchBox, Select, Textarea,
)
Full Import¶
Component Conventions¶
Constructor Parameters¶
Most components accept:
- Required parameters — Essential data (text, items, etc.)
- Optional styling —
variant,size,colors - Optional behavior —
closable,checkable,editable
Signals¶
Components emit Qt signals for interactivity:
button.clicked.connect(handler)
table.row_clicked.connect(lambda idx, data: handle_row(idx))
search.text_changed.connect(filter_results)
Common Signals¶
| Signal | Emitted When |
|---|---|
clicked |
Element clicked |
double_clicked |
Element double-clicked |
value_changed |
Value modified |
selection_changed |
Selection updated |
text_changed |
Text content changed |
Methods¶
Components provide methods for:
- Data access —
text(),value(),get_selected() - Data modification —
setText(),setValue(),set_items() - State management —
setEnabled(),setVisible(),clear()