[SOLVED]ObjectModel unknown component (M300)
-
wrote on 8 Sept 2013, 11:02 last edited by
so I just got started to program in qtquick and I'm following the getting started guide.
http://qt-project.org/doc/qt-5.1/qtdoc/gettingstartedqml.htmlbut at the Using Data Models and Views part of the guide, we have to use the ObjectModel but the qtcreator says that it is an unknown component (m300).
so what do I have to do reinstall the qt liberary? or is there another way to solve it. i have imported the QtQuick 2.0 lib so that can not be the problem.
-
wrote on 9 Sept 2013, 13:39 last edited by
i have reinstalled qt itself but the object model component is still missing. is there a way to add it manually?
-
wrote on 9 Sept 2013, 14:34 last edited by
Are you importing the correct version of import QtQuick in your QML ?
-
wrote on 9 Sept 2013, 15:41 last edited by
I had imported the qtquick 2.0
but i tried to use the VisualItemModel of the 4.8 getting started and it worked.
the VisualItemModel is also used in the 5.0 maybe the getting started 5.1 needs to be edited or another qtquick (2.1 instead of 2.0) must be imported. -
wrote on 14 Sept 2013, 11:44 last edited by
I have the same problem with Qt 5.1 for Android
-
wrote on 12 Dec 2013, 16:02 last edited by
Hi massau, how did you resolve this problem? I have the same btu I cannot fix it.
-
wrote on 7 Jan 2014, 09:35 last edited by
Hi,
I think you should import QtQml.Models 2.1 also. -
wrote on 11 Aug 2015, 00:47 last edited by Archie888 8 Nov 2015, 00:47
Hi,
Getting this error also. What was the solution, as this thread is in the solved state?
I am importing QtQuick 2.4 and QtQml.Models 2.1. My setup:
Qt Creator 3.4.0 (opensource)
Based on Qt 5.4.1 (Clang 6.0 (Apple), 64 bit) -
wrote on 11 Aug 2015, 00:51 last edited by
Actually, it seems that it does work when the application is run, even though the symbol is marked as erroneous in Creator.
-
wrote on 3 Feb 2020, 08:24 last edited by
I know it's old but can be useful.
In the project settings, in the qmake settings box, check "Enable QML debugging and profiling" and "Enable Qt Quick Compiler" resolve the problem. The object is not marked as unknown anymore.