QtQml: Record export versions in qmldir


So far, the VERSION attribute of qt_add_qml_module is only recorded by
qmltyperegistrar in the generated C++ file. If you don't generate a C++
file, it's lost. It's also not available to downstream tooling like
qmlcachegen. The same holds for PAST_MAJOR_VERSION.

Record the versions in the qmldir as a new "export" entry instead.

Pick-to: 6.12 6.8
Task-number: QTBUG-147814
Change-Id: I986d14eaa9a21901bb67c7bb167be2f545eca1ff
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commit19ae96f7b4e82d9f994018b76ba478380bf84696
parent55b016ab0054fef50f29243868a649e4dbc3a695
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeTue, 20 Oct 2026 13:18:47 +0000