[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?
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.
I have the same problem with Qt 5.1 for Android
Hi massau, how did you resolve this problem? I have the same btu I cannot fix it.
I think you should import QtQml.Models 2.1 also.
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)
Actually, it seems that it does work when the application is run, even though the symbol is marked as erroneous in Creator.