Thank you for considering contributing to QGroundControl! This guide will help you get started with contributing code, reporting issues, and improving documentation.
AI coding agents (Claude Code, Codex, etc.): see AGENTS.md for the canonical agent-facing guide (golden rules,
justbuild/test commands, definition of done, commit conventions). This document remains the human-facing source of truth for the Architecture Patterns that AGENTS.md links back to.
- Getting Started
- How to Contribute
- Coding Standards
- Testing Requirements
- Pull Request Process
- License Requirements
- Additional Resources
Before you begin, please:
- Read the Developer Guide
- Review the Build Instructions
- Familiarize yourself with the Architecture Patterns in this guide
- Language: C++20 with the Qt version defined in
build-config.json - Build System: CMake (minimum version defined in
build-config.json); see the CMake development guide for modules, presets, and focused tests - Platforms: Windows, macOS, Linux, Android, iOS
- IDE: Qt Creator (recommended), VS Code, or your preferred IDE
- First-time setup:
just setupinstalls the system dependencies and the pinned Qt, then configures and builds;just qtalone installs the Qt version frombuild-config.jsoninto~/Qt - Build/test/lint commands: see tools/README.md for the
just configure/build/test/lint/checkworkflow
Before creating a new issue:
- Search existing issues to avoid duplicates
- Provide complete information:
- QGroundControl version
- Operating system and version
- Detailed steps to reproduce
- Log files (the
Logsfolder in QGroundControl's save path; on desktop the default is~/Documents/QGroundControl/Logs) - Screenshots or videos if applicable
Create an issue: https://github.com/mavlink/qgroundcontrol/issues
For security vulnerabilities: See our Security Policy for responsible disclosure procedures.
Feature requests are welcome! Please:
- Check if the feature already exists or has been requested
- Explain the use case and benefits
- Consider implementation complexity
- Be prepared to contribute code if possible
QGroundControl uses Crowdin for community translations. See tools/translations/README.md for details on how translations are managed.
-
Fork the repository
git clone https://github.com/YOUR-USERNAME/qgroundcontrol.git cd qgroundcontrol git remote add upstream https://github.com/mavlink/qgroundcontrol.git git config blame.ignoreRevsFile .git-blame-ignore-revs # skip formatting-only commits in blame
-
Create a feature branch
git checkout -b feature/my-new-feature
-
Make your changes following our coding standards
-
Test your changes thoroughly
- Run
just test(Unit and Integration labels, as in CI), orctest --test-dir build --output-on-failure -L Unitfor unit tests only - Test on all relevant platforms when possible
- Test with both PX4 and ArduPilot if applicable
- Run
-
Commit your changes using Conventional Commits;
prek install(from theprecommittools group) adds hooks that run the lint checks and check the message on each commitgit add . git commit -m "feat: brief description"
-
Push to your fork
git push origin feature/my-new-feature
-
Create a Pull Request from your fork to
mavlink/qgroundcontrol:master
Follow CODING_STYLE.md for naming, formatting, C++20 features, QML style, and logging
conventions. Run just lint (prek run --all-files) before committing; see
tools/README.md for all development commands. The formatting hooks only report:
apply their fixes with just format-fix (clang-format, on the lines you changed) and
just format-fix-python (Ruff).
QGroundControl has several core architecture patterns you must follow. See CODING_STYLE.md for full details with code examples:
- Fact System: ALL vehicle parameters use Facts — never create custom parameter storage
- Multi-Vehicle: ALWAYS null-check
activeVehicle()/Vehicle*before use - Firmware Plugin: Use
vehicle->firmwarePlugin()for firmware-specific behavior - QML Integration: Use
QML_ELEMENT/QML_SINGLETON/QML_UNCREATABLEmacros,Q_PROPERTYfor bindings
See test/README.md for the complete testing guide, including base classes, CTest labels,
MultiSignalSpy, and coverage.
Key points:
- Add unit tests for new functionality in
test/mirroringsrc/structure - Use the
UnitTestbase class (orVehicleTest,MissionTest, etc.) - Run
just testbefore submitting - Test on multiple platforms and both PX4/ArduPilot when applicable
-
Rebase on latest master
git fetch upstream git rebase upstream/master
-
Ensure all checks pass:
just checkruns lint, the Python tooling tests, and the application tests -
Update documentation if needed
-
Write a clear PR description:
- What problem does it solve?
- How was it tested?
- Breaking changes (if any)
- Screenshots for UI changes
- All CI checks are expected to pass before a maintainer merges. GitHub itself blocks a merge only on a check that a ruleset requires, and upstream required none in November 2026. The CI overview lists what runs on a pull request and how to read and reproduce a failed check
- The pull request title is a Conventional Commits subject of at most 80 characters; the
Validate PR Titlecheck fails otherwise. A squash merge can commit the title as its subject; merge and rebase merges, which upstream also allows, keep each commit's own message - Code follows style guidelines
- Tests added for new features
- No unrelated changes
- Commit messages are clear and descriptive (Conventional Commits, see AGENTS.md)
- Maintainers will review your PR
- Address feedback; fold fixups into the commits they amend rather than adding a trail of review-fix commits (see AGENTS.md)
- Once approved, a maintainer will merge your PR
- Delete your feature branch
- Your contribution will appear in the next release
- Thank you for contributing!
All contributions must be compatible with QGroundControl's dual-license system (Apache 2.0 AND GPL v3). Your code must be original or from a compatible license (BSD, MIT, Apache 2.0).
See COPYING.md for full license details, compatible licenses, and contact information.
- User Manual: https://docs.qgroundcontrol.com/master/en/qgc-user-guide/
- Developer Guide: https://docs.qgroundcontrol.com/master/en/qgc-dev-guide/
- Support Guide: For help and community resources, see SUPPORT.md
- Discussion Forum: https://discuss.px4.io/c/qgroundcontrol
- Discord: https://discord.gg/dronecode
- Code of Conduct: QGroundControl is part of the Dronecode Foundation — see our Code of Conduct
Thank you for contributing to QGroundControl! Your efforts help make drone control accessible to everyone.