Skip to main content
skill CX Codex

qt-canvas2d — Claude Code skill for QML Canvas2D

This Claude Code skill guides QML work with Qt Canvas2D. It applies when writing, reviewing, fixing or porting 2D drawing code.

no license 203 installs ★ 556 updated 2026-10-20

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a claude-code
Open on GitHub

What qt-canvas2d does

The skill guides QML code that uses Qt Canvas2D, from new drawing code to reviews, fixes and performance tuning. It also covers moving drawing code from Qt Quick Canvas, HTML5 canvas or C++ QCanvasPainter, and comparing Canvas2D with Shape/ShapePath when choosing a GPU drawing approach.

Its material includes an API reference, rules and 19 runnable recipes. The agent consults the API reference before writing code and the porting guide for migrations. Qt Canvas Painter is part of Qt 6.12+, and the application must link Qt6::CanvasPainter and import both QtQuick and QtCanvas2D. Work outside the canvas item itself also calls for the qt-qml skill.

What it helps with

  • write QML drawing code for Qt Canvas2D
  • review or fix existing Canvas2D code
  • port Qt Quick Canvas drawing to Canvas2D
  • choose between Canvas2D and Shape/ShapePath

Example prompts for the agent

  • Write QML code to draw a chart with Qt Canvas2D.
  • Review this Canvas2D code and fix rule violations.
  • Port this Qt Quick Canvas drawing code to Canvas2D.

How to install qt-canvas2d

1Skills CLI (Vercel)

npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a claude-code

2Manually: put the files in place

~/.claude/skills/qt-canvas2d/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/qt-canvas2d/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about qt-canvas2d

How do I install qt-canvas2d in Claude Code?

Run npx skills add TheQtCompanyRnD/agent-skills --skill qt-canvas2d -a claude-code. The skill file is available at ~/.claude/skills/qt-canvas2d/SKILL.md.

What does qt-canvas2d do?

It guides QML work with Qt Canvas2D, including writing and reviewing code and porting drawing implementations. It also covers choosing between Canvas2D and Shape/ShapePath.

What does qt-canvas2d require?

The project needs Qt 6.12+ with the Canvas Painter module. The application must link Qt6::CanvasPainter and import QtQuick and QtCanvas2D.

Similar skills

All skills for Frontend and UI →

From the same set14

The whole set →
qt-qml-docs qt-qml-docs reads .qml sources and related project files, then writes a Markdown reference per component: properties, signals, methods, dependencies. CX Codex +1 830installs qt-qml-profiler The qt-qml-profiler skill profiles 2D QML apps and inspects .qtd traces to locate performance bottlenecks. Use it when a Qt Quick interface stutters or you need to investigate rendering, bindings, or signals. CX Codex +1 816installs qt-qml-test qt-qml-test generates Qt Quick Test suites for QML components. Saves ready test files to verify component properties and signal emissions in Qt 6. CX Codex +1 720installs qt-qml-test-run qt-qml-test-run builds a Qt 6 CMake project, executes Qt Quick Test via qmltestrunner or CTest, and generates a Markdown report. Useful for verifying QML interfaces in terminal-enabled workflows. CX Codex +1 681installs qt-cmake-project The qt-cmake-project skill writes and edits CMake for Qt 6 projects: targets, QML modules, resources. Useful when your agent mixes up Qt 5 and Qt 6 commands. CX Codex +1 664installs qt-figma-token-extraction qt-figma-token-extraction reads variables, text styles and tokens out of a Figma file, then writes design-tokens.json and working QML singletons built around one Theme. CX Codex +1 533installs qt-figma-component-generation qt-figma-component-generation reads Figma components over MCP and writes QML controls for Qt Quick Controls 2. It runs at the component generation step of a design-system workflow. CX Codex +1 531installs qt-development-skills qt-development-skills — a Qt-focused plugin for C++ and QML reviews, docs, tests, profiling, CMake projects, and Figma-driven UI work. ★ 556repo stars

Project sponsors

Companies that keep this analytics open