How Not to Design Reusable Components in QML
summary
Three years of rebuilding Autodesk’s CAD UI with QML surfaces concrete anti-patterns and fixes: avoid arbitrary Z indices and hard-coded sizes or colors; stop relying on parent IDs or context properties—expose needed properties instead; never set anchors/X/Y inside a component, provide implicitSize sensible defaults; separate delegates from reusable components; use a non-positioner top-level item and internal positioners; use qml-lint/qml language server and adopt Qt Quick Controls patterns to make components composable and robust.
AI-written summary · about
