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. TreeView unknown component (M300) - Qt5.5.1

TreeView unknown component (M300) - Qt5.5.1

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 4 Posters 3.6k 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.
  • R Offline
    R Offline
    rayanOs
    wrote on 29 Oct 2015, 10:26 last edited by
    #1

    I am Using treeview in qml, but the qtcreator says that it is an unknown component (m300)..i have import QtQuick.Controls 1.4

    so what do I have to do reinstall the qt liberary? or is there another way to solve?

    import QtQuick 2.5
    import QtQuick.Controls 1.4
    import QtQuick.Window 2.2
    import QtQuick.Dialogs 1.2
    import treeview.mymodels 1.0

    ApplicationWindow {
    title: qsTr("Qt Quick: TreeView")
    width: 640
    height: 480
    visible: true

    TabView {
        width: parent.width
        height: parent.height
        MyTreeModel {
            id: theModel
        }
        
        TreeView {
            id:treeviewID
            anchors.fill: parent
            model: theModel
            headerVisible : false
        }
    }
    

    }

    the symbol treeview is marked as erroneous in Creator.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rutra
      wrote on 30 Oct 2015, 11:36 last edited by
      #2

      Hi!
      I have the same problem. I did not find any solution.
      I think this is only Qt GUI error. Because my project is compiled and work correctly.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tvdp
        wrote on 4 Nov 2015, 12:47 last edited by
        #3

        Hi,
        same problem here, at least on OSX don't know about Windows.
        I can confirm the application compiles fine, any way to fix Qt Creator ?
        Thx !

        P 1 Reply Last reply 5 Nov 2015, 06:34
        0
        • T tvdp
          4 Nov 2015, 12:47

          Hi,
          same problem here, at least on OSX don't know about Windows.
          I can confirm the application compiles fine, any way to fix Qt Creator ?
          Thx !

          P Offline
          P Offline
          p3c0
          Moderators
          wrote on 5 Nov 2015, 06:34 last edited by
          #4

          @tvdp You can only suppress them. Just add // @disable-check M300 before TreeView. The same can be done by right-click > TreeView > "Add a Comment to Suppress This Message"

          157

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tvdp
            wrote on 5 Nov 2015, 13:12 last edited by
            #5

            @p3c0 Thanks for the tip: it doesn't fix the designer itself, but at least I can continue using the text editor without too much hassle...

            1 Reply Last reply
            0

            1/5

            29 Oct 2015, 10:26

            • Login

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