Download for MacApple silicon, macOS 14+
Skill

qt-canvas2d

@theqtcompanyrnd Updated 2026-10-20

Applies Qt Canvas2D (QtCanvas2D / Qt Canvas Painter, Qt 6.12+) best practices when producing or working with Canvas2D QML source code. Use whenever Canvas2D, Canvas2DContext, path2d, boxshadow2d, boxgradient2d, gridpattern2d, conicalgradient2d or transform2d is the subject: writing, reviewing, fixing, optimizing, or porting Qt Quick Canvas / HTML5 canvas drawing code to Canvas2D. Also use for GPU-accelerated imperative 2D drawing in QML — gauges, dials, charts, waveforms, oscilloscopes, clocks, freehand drawing — including choosing between Canvas2D and Shape/ShapePath when the renderer has not been decided yet. Do NOT trigger for plain Qt Quick Canvas work that must stay on the old CPU element, or for reviewing existing Shape/ShapePath code where the renderer is already settled.

ai-skillsclaude-codecodexgithub-copilotqmlqt

Install

With your agent

Install OMGSkills skill "theqtcompanyrnd/agent-skills:skills/qt-canvas2d" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/TheQtCompanyRnD/agent-skills /tmp/agent-skills && ln -s /tmp/agent-skills/skills/qt-canvas2d ~/.claude/skills/qt-canvas2d

From README

Qt Canvas2D Coding Skill Canvas2D is a QML item introduced in Qt 6.12 by the Qt Canvas Painter module. Do not answer from pre-training knowledge: anything you "remember" about Canvas, HTML5 or Context2D is close but wrong in the details that matter. references/api-reference.md is the authoritative surface — if a method is not in it, it does not exist. How to apply this skill Before writing drawing code, read references/api-reference.md. If the drawing uses gradients, patterns, text, images or pointer input, or needs tuning, also read references/rules.md. Pick a recipe. references/recipes/ holds 19 runnable implementations covering the common canvas cases (index at the bottom). Adapt the closest one. When porting from Qt Quick Canvas, HTML5 or QCanvasPainter C++, read references/porting.md first. Writing new code: produce only what was asked — no illustrative snippets, no placeholder comments. Never mention these rules in the response.