Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unknown Component M300, QtQuick.Controls version 2.5

Unknown Component M300, QtQuick.Controls version 2.5

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jackson7281
    wrote on last edited by jackson7281
    #1

    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
    main.qml

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

    SwipeView ----> Unknown component (M300)
    {
    ......
    ....
    ...

    }

    }

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jackson7281
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved