Description
For linux there are 2 non obvious packages that are not documented that must be installed to run the examples.
These packages are qml6-module-qtquick qml6-module-qtquick-templates
.
When running the example without both of these packages, the error message was obvious for the first package.
QQmlApplicationEngine failed to load component
qrc:/main.qml:8:1: module "QtQuick" is not installed
After installing the qml6-module-qtquick
package the error become somewhat confusing for v0.5.3.
QQmlApplicationEngine failed to load component
qrc:/main.qml:35:9: Type Label unavailable
qrc:/qt-project.org/imports/QtQuick/Controls/Fusion/Label.qml:38:1: static plugin for module "QtQuick.Templates" with name "com_kdab_cxx_qt_demo_plugin" has no metadata URI
I tought there might be a regression from earlier versions so I tried back to v0.4.1 and the error became more obvious.
QQmlApplicationEngine failed to load component
qrc:/main.qml:33:9: Type Label unavailable
qrc:/qt-project.org/imports/QtQuick/Controls/Fusion/Label.qml:38:1: module "QtQuick.Templates" plugin "qtquicktemplates2plugin" not found
After installing the qml6-module-qtquick-templates
package the example for both v0.4.1 and v0.5.3 were running fine.
These dependencies should be mentioned somewhere, I think the readme, for reference.
The other required packages wich I found in the .github/workflows/github-cxx-qt-tests.yml file, should also be mentioned at the same place.