Usage Guide
Usage Guide
WidgetKit controls follow a common pattern:
- Visual states are managed through theme names and style data.
- Layout is configured through containers, docking, and policy-based sizing.
- Runtime behavior is controlled with explicit C++ APIs.
- JSON serialization is used for reusable UI configuration.
Recommended Practice
- Prefer
setThemeName(...)over direct color assignment for reusable visuals. - Keep hidden/transparent backgrounds as runtime behavior when the setting affects drawing logic.
- Use absolute dock only for chrome, overlays, and fixed-position tool areas.
- Use auto-size mode for absolute containers when the size should follow child controls.