diff options
| author | Sze Howe Koh <szehowe.koh@gmail.com> | 2025-08-14 16:16:17 +0800 |
|---|---|---|
| committer | Sze Howe Koh <szehowe.koh@gmail.com> | 2025-08-16 10:38:07 +0800 |
| commit | 5296c0255b83b8a92e82b3ec4d536655742b90cf (patch) | |
| tree | 85180f534fd67840536f40b0cc34b81e53fc0c21 /src/qml/doc/snippets | |
| parent | a007f6e0d36d46cee32a62876fc3c812f2cfadae (diff) | |
Doc: Demonstrate finding some private modules
Explicitly finding a private module was not strictly required in Qt
6.9 and older. This patch adds a small demonstration to some snippets,
to show how to find QmlPrivate/QuickPrivate. This might be helpful
for users who're scratching their heads when their previously-working
project now fails to build in Qt 6.10.
Change-Id: Ia8a08d94ea65aa73a44c7a7610d28119582ebf0f
Pick-to: 6.10
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/qml/doc/snippets')
| -rw-r--r-- | src/qml/doc/snippets/qmltc/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/doc/snippets/qmltc/CMakeLists.txt b/src/qml/doc/snippets/qmltc/CMakeLists.txt index 4574a44795..93477a70cc 100644 --- a/src/qml/doc/snippets/qmltc/CMakeLists.txt +++ b/src/qml/doc/snippets/qmltc/CMakeLists.txt @@ -59,5 +59,6 @@ qt6_add_qml_module(${application_name} #! [qmltc-compile-to-cpp] # (qmltc-specific) Link *private* libraries that correspond to QML modules: +find_package(Qt6 COMPONENTS QmlPrivate QuickPrivate) target_link_libraries(${application_name} PRIVATE Qt::QmlPrivate Qt::QuickPrivate) #! [qmltc-compile-to-cpp] |
