Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtQuick.Controls installed but can not be used (on Raspberry Pi 4)



  • I am running Qt nativly on a Raspberry Pi 4 model B and everything seems to be working just fine.

    I have installed all I needed like this:

    sudo apt install qtcreator qt5-default qt5-qmake qtdeclarative5-dev qtquickcontrols2-5-dev
    

    That is pretty much what I needed, nothing fancy really.
    Now I try to explain the error I get.

    In my pro file I have added:

    QT += quick
    QT += quickcontrols2
    

    and then in the qml file:

    import QtQuick 2.11
    import QtQuick.Window 2.11
    import QtQuick.Controls 2.5
    

    But it does not want to run, I am getting the following error:

    qrc:/main.qml:3 module "QtQuick.Controls" version 2.5 is not installed
    

    I wanted to use the ProgressBar in the Controls.
    Any idea why I can not run the program?

    Thanks


Log in to reply