# qt/qtbase SLOC report

> qt/qtbase: 2,455,780 code lines at commit 7d69cf9bb229, counted with tokei-15.0.0 on 2026-11-07. Saved result 232670a4a7cc958ebeaef2439036a9512ca75c74252586ba1f570ea617a8412b.

qt/qtbase has 2,455,780 source lines of code out of 3,616,146 total lines across 8,282 files, counted with tokei from the dev ref at commit 7d69cf9bb229 on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving qt/qtbase to commit 7d69cf9bb229, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

qt/qtbase: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 67.9% of all lines, comments represent 21.0%, and the repository averages 297 code lines per file. C++ accounts for 39.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 2,451 | 1,506,505 | 978,935 | 361,398 | 166,172 |
| C Header | 3,216 | 927,999 | 711,968 | 110,953 | 105,078 |
| C | 404 | 665,271 | 446,934 | 136,626 | 81,711 |
| C++ Header | 289 | 118,109 | 92,622 | 11,358 | 14,129 |
| CMake | 631 | 100,212 | 74,701 | 13,322 | 12,189 |
| XML | 87 | 54,952 | 52,339 | 573 | 2,040 |
| Objective-C++ | 126 | 63,204 | 46,520 | 7,665 | 9,019 |
| Python | 32 | 17,094 | 14,460 | 1,118 | 1,516 |
| Java | 62 | 12,165 | 9,494 | 1,202 | 1,469 |
| YAML | 72 | 5,240 | 4,615 | 391 | 234 |
| GNU Style Assembly | 6 | 5,324 | 4,008 | 673 | 643 |
| JSON | 180 | 3,391 | 3,289 | 0 | 102 |
| Autoconf | 81 | 3,084 | 2,222 | 431 | 431 |
| TOML | 99 | 2,470 | 1,974 | 7 | 489 |
| Prolog | 201 | 2,319 | 1,861 | 0 | 458 |
| JavaScript | 10 | 1,850 | 1,419 | 195 | 236 |
| SVG | 67 | 1,255 | 1,207 | 23 | 25 |
| Shell | 23 | 1,733 | 1,183 | 321 | 229 |
| Perl | 4 | 1,153 | 907 | 91 | 155 |
| Makefile | 52 | 2,810 | 882 | 1,223 | 705 |
| GLSL | 20 | 1,157 | 737 | 251 | 169 |
| WebGPU Shader Language | 4 | 823 | 719 | 3 | 101 |
| CSS | 2 | 1,031 | 647 | 184 | 200 |
| HLSL | 7 | 935 | 617 | 188 | 130 |
| Bitbake | 2 | 508 | 424 | 8 | 76 |
| Ark TypeScript | 14 | 457 | 406 | 1 | 50 |
| Lex | 2 | 227 | 185 | 6 | 36 |
| Swift | 1 | 201 | 172 | 5 | 24 |
| Batch | 3 | 208 | 160 | 9 | 39 |
| TypeScript | 6 | 116 | 102 | 0 | 14 |
| HTML | 2 | 55 | 39 | 11 | 5 |
| Dockerfile | 1 | 29 | 17 | 8 | 4 |
| Kotlin | 1 | 21 | 14 | 2 | 5 |
| Snakemake | 1 | 1 | 1 | 0 | 0 |
| Markdown | 20 | 4,986 | 0 | 3,921 | 1,065 |
| Plain Text | 103 | 109,251 | 0 | 105,498 | 3,753 |

Top language: C++ 39.9%. Generated on November 7, 2026. Canonical report: https://octocounts.com/github/qt/qtbase/commit/7d69cf9bb229c48ee41769dec8ec5ec89db00a33?reportId=232670a4a7cc958ebeaef2439036a9512ca75c74252586ba1f570ea617a8412b&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/qt/qtbase/commit/7d69cf9bb229c48ee41769dec8ec5ec89db00a33?reportId=232670a4a7cc958ebeaef2439036a9512ca75c74252586ba1f570ea617a8412b&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does qt/qtbase have?

qt/qtbase has 2,455,780 lines of code, plus 757,665 comment lines and 402,701 blank lines, for 3,616,146 total lines at commit 7d69cf9bb229 on November 7, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the qt/qtbase line count measured?

OctoCounts resolved the public GitHub repository to commit 7d69cf9bb229, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for qt/qtbase?

This OctoCounts report was generated from dev at commit 7d69cf9bb229 on November 7, 2026.

## Similar repository reports

- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,566,422 code lines
- [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) — C++, 2,308,492 code lines
- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,675,031 code lines
- [alibaba/MNN](https://octocounts.com/github/alibaba/MNN) — C++, 2,703,460 code lines
- [o3de/o3de](https://octocounts.com/github/o3de/o3de) — C++, 2,722,224 code lines
- [ryzom/ryzomcore](https://octocounts.com/github/ryzom/ryzomcore) — C++, 2,194,087 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
