Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]ObjectModel unknown component (M300)
so I just got started to program in qtquick and I'm following the getting started guide.
but 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.
i have reinstalled qt itself but the object model component is still missing. is there a way to add it manually?
Qnoobish last edited by
Are you importing the correct version of import QtQuick in your QML ?
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.
Muhammad last edited by
I have the same problem with Qt 5.1 for Android
griso1981 last edited by
Hi massau, how did you resolve this problem? I have the same btu I cannot fix it.
ligras last edited by
I think you should import QtQml.Models 2.1 also.
Archie888 last edited by Archie888
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)
Archie888 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.
Demissy 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.