qmllint does not find QtQuick module
-
Hi,
I'm trying to use qmllint from a docker container based on ubuntu 22.04.
For this purpose, I'm installing the following ubuntu packages: qt6-base-dev, qt6-declarative-dev, qt6-base-dev-tools and qt6-declarative-dev-tools. The problem is that if I try to run qmllint I get the following warning messages:
$ /usr/lib/qt6/bin/qmllint --qmldirs /usr/lib/x86_64-linux-gnu/qt6/qml/ main.qml Warning: main.qml:1:1: Warnings occurred while importing module "QtQuick": import QtQuick ^^^^^^ --- Warning: Failed to import QtQuick. Are your include paths set up properly? --- Warning: main.qml:4:5: Binding assigned to "width", but no property "width" exists in the current element. width: 640 ^^^^^ Warning: main.qml:5:5: Binding assigned to "height", but no property "height" exists in the current element. height: 480 ^^^^^^
It looks like it cannot find the Qt installation path. Does anyone know how to fix it?
Thanks,
asconcepcion.