Graphics and Canvas
Graphics and Canvas
Graphics controls host custom drawing, OpenGL scenes, SVG imagery, and lightweight visualization surfaces.
Chart-specific controls belong to ChartKit. WidgetKit graphics controls are intended for non-chart rendering surfaces, previews, and custom painted UI.
Class Diagram
QWidget
├─ UIGQCanvas + IUIGQWidgetBase
└─ QOpenGLWidget
├─ UIGQOpenGLWidget + OpenGLFunctions
└─ UIGQOGLWidget
Notes
- Keep drawing logic separate from layout code.
- Use stable canvas dimensions where possible.
- Validate high-DPI behavior.
- For SVG display, decide whether the original SVG color or runtime tint color should be used.