QDoc: Fix tst_validateQdocOutputFiles doc warnings on macOS


The tst_validateQdocOutputFiles qmlsingleton test case started failing
in a macOS framework prefix build after a dependency update, with two
doc warnings, due to some include path issues.

The test header includes <QtQml/qqml.h>, which transitively includes
<QtQmlIntegration/qqmlintegration.h>. The include paths passed to qdoc
are generated from the test target's INCLUDE_DIRECTORIES, but the
target didn't link to Qt::Qml, so no Qml or QmlIntegration
include paths were provided.

In a non-prefix build this accidentally works because all module
headers live in subdirectories under the global include/ directory
that is already on Core's include path.

In a framework prefix build, QtQml is a framework and QtQmlIntegration
is a header-only module under include/QtQmlIntegration.
Due to some qtbase changes in how headers are created for frameworks,
the global "include/" path is no longer passed, so the qdoc clang
parser fails with:
  qt.qdoc.clang:
  <install>/lib/QtQml.framework/Headers/qqmlregistration.h:9:10:
  error: 'QtQmlIntegration/qqmlintegration.h' file not found

qdoc then fails to process the class constructors and can't tie their
documentation to anything and that results in some doc warnings.

Fix this by explicitly linking Qt6::Qml into the test target. It
publicly depends on Qt6::QmlIntegration, whose interface include
directories contain the path to resolve
<QtQmlIntegration/qqmlintegration.h>.

Pick-to: 6.12
Fixes: QTBUG-148305
Change-Id: I2e9b03cddc1a8acde70d60a3bb2fc6db6197607a
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commita7b0ba6a7798e43ea52c0f9aab19d1c539f6be5d
parentde505b55a672260bf3d19f88081fcd1d63336d83
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeWed, 15 Jul 2026 17:00:38 +0000