In recent versions of Qt (at least since 6.7.2), the tool qmllint has become much more helpful. We are using it now on a regular basis to validate our QML code.
In this process, I have seen that QuickQanava does not currently work well with qmllint. Just using QuickQanava in a project will trigger a large number of warnings, for example:
[build] Warning: /home/user/Source/qml/PipelineRunnerPage.qml:96:24: Qan.Graph was not found. Did you add all import paths? [import]
[build] graph: Qan.Graph {
[build] ^^^
[build] Warning: /home/user/Source/qml/PipelineRunnerPage.qml:105:35: Qan.NodeItem was not found. Did you add all import paths? [import]
[build] nodeDelegate: Qan.NodeItem {
[build] ^^^
[build] Warning: /home/user/Source/qml/PipelineRunnerPage.qml:125:25: Qan.RectNodeTemplate was not found. Did you add all import paths? [import]
[build] Qan.RectNodeTemplate {
[build] ^^^
[build] Warning: /home/user/Source/qml/PipelineRunnerPage.qml:105:35: Qan.NodeItem was not found. Did you add all import paths? [import]
[build] nodeDelegate: Qan.NodeItem {
[build] ^^^
[build] Warning: /home/user/Source/qml/PipelineRunnerPage.qml:79:13: Qan.GraphView was not found. Did you add all import paths? [import]
[build] Qan.GraphView {
[build] ^^^
There are quite a lot more related warnings.
When using modern cmake features on QuickQanava, all the types should be automatically detected and exported with the module. There is no longer a need to maintain manually the qmldir files.
In recent versions of Qt (at least since 6.7.2), the tool
qmllint
has become much more helpful. We are using it now on a regular basis to validate our QML code.In this process, I have seen that
QuickQanava
does not currently work well withqmllint
. Just using QuickQanava in a project will trigger a large number of warnings, for example:There are quite a lot more related warnings.
When using modern cmake features on QuickQanava, all the types should be automatically detected and exported with the module. There is no longer a need to maintain manually the
qmldir
files.