TreeView unknown component (M300) - Qt5.5.1
-
wrote on 29 Oct 2015, 10:26 last edited by
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.0ApplicationWindow {
title: qsTr("Qt Quick: TreeView")
width: 640
height: 480
visible: trueTabView { 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.
-
wrote on 30 Oct 2015, 11:36 last edited by
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. -
wrote on 4 Nov 2015, 12:47 last edited by
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 ! -
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 !@tvdp You can only suppress them. Just add
// @disable-check M300
beforeTreeView
. The same can be done by right-click > TreeView > "Add a Comment to Suppress This Message"
1/5