Important: Please read the Qt Code of Conduct -

Unknown Component M300, QtQuick.Controls version 2.5

  • Hi everyone :
    I have created a simple empty qt quick project trying to make a simple SwipeView application, but the SwipeView seems not be recognized by compile, always shows with a Unknown Component.(M300), and when i run the project, appliation out display
    QtQuick.Controls version 2.5 is not installed, this problem has been bothering me for days. hope anyone could help.... thanks

    My Qt Versions is Qt 5.11.3
    here is my code

    import QtQuick 2.6
    import QtQuick.Controls 2.5
    visible : true
    width: 640
    height : 480
    title : qsTr("Hello World")

    SwipeView ----> Unknown component (M300)



  • I figured it out, I installed the missing package manually using the following

    sudo apt-get install qml-module-qtquick-controls2

    but it only support up to QtQuick.Controls2.4

    and the Controls2.5 still have the error, but it's enough for me.

Log in to reply