QDoc: Render QML type pages through the IR template pipeline
QML type pages were displaying placeholder text instead of structured
documentation. Readers visiting these pages couldn't see import
statements, inheritance chains, or property listings that help them
understand how to use a QML type.
The qmltype template renders a requisites table (import, inherits,
inherited-by, native C++ type, singleton flag), body content via the
shared content_blocks partial, and member summary sections. Both HTML
and Markdown variants are registered as embedded Qt resources. The
TemplateGenerator dispatches QML type pages through the standard
extraction, Builder, link resolution, and render pipeline instead of
writing placeholder text.
QtLottie validation expected output is regenerated to reflect the new
template output for QML type pages.
Fixes: QTBUG-145115
Change-Id: I3d74d92f44189592778f1587fb7c99d2d88fd7a4
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | d061e035b2e1099b0bfc667348c132ea1349c545 |
| parent | 16fb593940f9246d8d1236aa39dda3c031673807 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Mon, 23 Mar 2026 18:43:25 +0100 |
- M src/qdoc/qdoc/CMakeLists.txt
- M src/qdoc/qdoc/src/qdoc/templategenerator.cpp
- A src/qdoc/qdoc/src/qdoc/templates/qmltype.html
- A src/qdoc/qdoc/src/qdoc/templates/qmltype.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/QtLottie-qdoc-warnings.log
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qml-item.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qml-qt-labs-lottieqt-lottieanimation.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/html/qml-qt-labs-lottieqt-vectorimagehelpers-layeritem.html
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-item.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-qt-labs-lottieqt-lottieanimation.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/expected/markdown/qml-qt-labs-lottieqt-vectorimagehelpers-layeritem.md
- M src/qdoc/qdoc/tests/validatetemplategeneratoroutput/testdata/qtlottie_validation/qtlottie_validation.qdocconf