qt-qml-component-generator

Generate QML components with property bindings and C++ backend integration.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rghamilton3/mission-control-rack --skill qt-qml-component-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qt-qml-component-generator
Source: https://github.com/rghamilton3/mission-control-rack/tree/main/.claude/skills/qt-qml-component-generator
Command: npx skills add https://github.com/rghamilton3/mission-control-rack --skill qt-qml-component-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill removes the repetitive and error-prone work of hand-crafting QML components, ensuring correct property bindings, signal/slot wiring, and consistent integration with Qt Quick Controls and optional C++ backends.

Core Features & Use Cases

  • Component Generation: Create QML components (item, control, popup, view, delegate, singleton) with idiomatic property and binding declarations.
  • C++ Backend Integration: Optionally generate C++ QObject-based backends with Q_PROPERTY, signals, and registration code.
  • Module & Build Setup: Produce qmldir entries and CMake module fragments to register components as reusable QML modules.
  • Use Case: Rapidly scaffold a CustomButton control with loading state, signals, and a C++ backend to centralize business logic.

Quick Start

Generate a Control component named CustomButton at /path/to/qt-project with cppBackend enabled and basic controls integration.

Frequently Asked Questions about qt-qml-component-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate QML components with correct property bindings and signal/slot integration?

To generate QML components with correct property bindings, you can scaffold QML files, optional C++ backend classes, and qmldir entries automatically. This ensures correct signal/slot wiring and consistent integration with Qt Quick Controls for reusable UI elements.

Can I create a Qt Quick control with an optional C++ backend automatically?

Yes, you can optionally generate C++ QObject-based backends alongside Qt Quick controls. The backend includes Q_PROPERTY declarations, signals, and registration code to centralize business logic and connect it directly to the QML interface.

What is the best way to set up qmldir entries and CMake module configuration for Qt Quick projects?

Setting up qmldir entries and CMake module configuration involves producing registration fragments that define your QML modules. Automating this process registers reusable components correctly within the Qt Quick environment, preventing manual build errors.

How do I scaffold a custom control or delegate in Qt Quick without writing boilerplate code?

Scaffolding a custom control or delegate in Qt Quick requires defining idiomatic property and binding declarations. Automated generation produces these QML files with proper Qt Quick Controls styling, removing the repetitive work of hand-crafting boilerplate.

Does automated QML component generation work for popups and views that require module registration?

Yes, automated QML component generation works for popups, views, and delegates by producing the necessary QML files and qmldir entries. It applies module registration requirements to ensure the components are recognized as reusable QML modules within Qt Quick.