Use qt6_query_qml_module to get path to qmldir, but not TARGET_FILE_DIR. This is more accurate way. Pick-to: 6.5 Fixes: QTBUG-120479 Change-Id: I4b7f7bf3b7f69c15871e400af3e7ae945a9bfdf0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit |
||
---|---|---|
.. | ||
images | ||
Button.qml | ||
CMakeLists.txt | ||
CheckBox.qml | ||
FlickrRssModel.qml | ||
Images.qml | ||
Label.qml | ||
LauncherList.qml | ||
QtBundleQmlModuleForMacOS.cmake | ||
README | ||
SimpleLauncherDelegate.qml | ||
Slider.qml | ||
TabSet.qml | ||
TextField.qml | ||
qmldir | ||
quick_shared.qrc | ||
shared.h | ||
shared.qrc |
README
These files are shared between multiple examples as a set of common and reusuable components. While they do demonstrate the building of reusable components in QML, they are not official examples themselves. Consequently they do not have entries in the Qt documentation, and are documented only through the code comments within the files. Developers new to QML are strongly encouraged to go through the official examples before delving into this directory. For most application use, see the Qt Quick Components project to find ready-made Components you can use in your own projects. Qt Quick examples do not use them only to avoid external dependencies.