Module "QtQuick.Controls" is not Installed

I got the error message above in starting my QML application. I used console-trdx-image to create the image of my rootfs. I added the following lines to local.conf to enable Qt (local.conf contains qtdeclarative and qtquickcontrols)

IMAGE_INSTALL_append = " \
        qtbase \
        qtbase-fonts \
        qtbase-plugins \
        qtdeclarative \
        qt3d \
        qtgraphicaleffects \
        qtconnectivity \
        qtquickcontrols \
        qtquick1 \
        qtimageformats \
        qtenginio \
        qtlocation \
        qtmultimedia \
        qtsensors \
        qtscript \
        qtserialport \
        qtsvg \
        qtcanvas3d \
        qttranslations \
        qtsystems \
        qtxmlpatterns \
        qttools \
"
DISTRO_FEATURES_remove = "x11 wayland"
IMAGE_INSTALL_remove = "eglinfo-x11"

ACCEPT_FSL_EULA = "1"

The qml-files and code to use QtQuick controls normally resides in the the folder /usr/libqt5/qmlQtQuick/Controls. But there exists no folder Controls at all.If I search the QtQuick control Slider.qml ( find . -name Slider.qml) at the starting point of rootfs there is nothing found at all. Normally the folder Controls should contain about 20 qml files and the lib libqtquickcontrolsplugin.so.

Eric Schall

I made another trial removing the lines redirecting output to eglfs in local.conf and make a new run of bitbake and target angstrom-qt-x11-image. Now the controls are visible in rootfs. But of course I want to use ECGLFS, it’s sufficient and my application works fine in using this environment.

Hello

I think I found the culprit:

If one wants the qtquickcontrols one needs to configure qtbase with “-accessibility”
That configuration was applied for X11 builds to work around a compile time error seen with X11 and as a side effect also enabling qtquickcontrol.

I pushed a patch which unconditionally configures accessibility so qtquickcontrol should now also be built when not targeting X11.

Max

Hello
After the build of the tool chain to get started my application in colibri imx6 (using angstrom-lxde-image with LinuxImageV2.7) I got the error message above in starting my QML application:
“module “QtQuick.VirtualKeyboard” is not installed”, even if i added the following lines to local.conf to enable Qt .

IMAGE_INSTALL_append ="qtbase
qtbase-plugins
qtdeclarative
qt3d
qtgraphicaleffects
qtconnectivity
qtquickcontrols
qtquick1
qtimageformats
qtenginio
qtlocation
qtmultimedia
qtsensors
qtscript
qtserialport
qtsvg
qtcanvas3d
qttranslations
qtsystems
qtxmlpatterns
qttools
cinematicexperience \ "
can you help me please. what i should change or to add to this file to get this module.