# qt/qtbase SLOC report

> As of 2026-11-16 (commit de551ceff1c5), qt/qtbase contains 3,623,373 total lines: 2,461,021 code, 758,970 comments, 403,382 blank, across 8,292 files in 36 languages (top language: C++ 39.9%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

qt/qtbase has 2,461,021 source lines of code out of 3,623,373 total lines across 8,292 files, counted with tokei from the dev ref at commit de551ceff1c5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving qt/qtbase to commit de551ceff1c5, 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 20.9%, 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,455 | 1,510,073 | 981,557 | 362,040 | 166,476 |
| C Header | 3,221 | 928,770 | 712,449 | 111,114 | 105,207 |
| C | 404 | 665,772 | 447,204 | 136,761 | 81,807 |
| C++ Header | 290 | 120,327 | 94,360 | 11,696 | 14,271 |
| CMake | 631 | 100,343 | 74,798 | 13,347 | 12,198 |
| XML | 87 | 54,952 | 52,339 | 573 | 2,040 |
| Objective-C++ | 126 | 63,213 | 46,528 | 7,665 | 9,020 |
| Python | 32 | 17,109 | 14,474 | 1,119 | 1,516 |
| Java | 62 | 12,165 | 9,494 | 1,202 | 1,469 |
| YAML | 72 | 5,249 | 4,622 | 393 | 234 |
| GNU Style Assembly | 6 | 5,324 | 4,008 | 673 | 643 |
| JSON | 180 | 3,392 | 3,290 | 0 | 102 |

Top language: C++ 39.9%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/qt/qtbase

## Reproduce this report

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

## Report FAQ

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

qt/qtbase has 2,461,021 lines of code, plus 758,970 comment lines and 403,382 blank lines, for 3,623,373 total lines at commit de551ceff1c5 on November 16, 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 de551ceff1c5, 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 de551ceff1c5 on November 16, 2026.

## Similar repository reports

- [microsoft/onnxruntime](https://octocounts.com/github/microsoft/onnxruntime) — C++, 2,571,676 code lines
- [swiftlang/swift](https://octocounts.com/github/swiftlang/swift) — C++, 2,299,938 code lines
- [ClickHouse/ClickHouse](https://octocounts.com/github/ClickHouse/ClickHouse) — C++, 2,641,612 code lines
- [alibaba/MNN](https://octocounts.com/github/alibaba/MNN) — C++, 2,699,238 code lines
- [o3de/o3de](https://octocounts.com/github/o3de/o3de) — C++, 2,717,083 code lines
- [OSGeo/gdal](https://octocounts.com/github/OSGeo/gdal) — C++, 2,173,887 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)
