-
Bug
-
Resolution: Moved
-
Not Evaluated
-
None
-
4.10
-
None
Summary
Linting qml examples for QSR 2.1.0 produces errors.
The Problem
Trying to apply qmllint to the `indicators` example, the following errors occur:
#~/Qt/Examples/QtSafeRenderer-2.1.0/saferenderer/indicators|> qmllint MainForm.ui.qml 2>&1 | head Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: MainForm.ui.qml:35:9: unknown grouped property scope font. [unqualified] font.family: "Lato" ^^^^ Warning: MainForm.ui.qml:52:9: unknown grouped property scope font. [unqualified]
The compilation runs properly, only qmllint fails.
Workaround/possible solution:
add `QtQuick` dependency for QSR's `qmldir`:
#> echo "depends QtQuick" >> ${QML_IMPORT_PATH}/Qt/SafeRenderer/qmldir