[Solved] ObjectModel is not a type
-
wrote on 10 Feb 2014, 09:41 last edited by
I get an error
"ObjectModel is not a type "
although,
import QtQuick 2.0
import QtQml 2.0are there.
-
wrote on 10 Feb 2014, 10:27 last edited by
I don't think that you need QtQml 2.0 and there is no ObjectModel in qml expect it's your own component.
For further informations about all available modeltypes read:
"Model Types":http://qt-project.org/doc/qt-5.0/qtquick/qtquick-qmltypereference.html#model-view-types-and-data-storage-and-accessTo help you i would appreciate a little bit more code or information on what you are trying to do.
-
wrote on 10 Feb 2014, 14:59 last edited by
Thanks, I guess it was just given as an example in docs.
-
wrote on 10 Feb 2014, 15:16 last edited by
You're welcome. Feel free to ask if you have got more questions.
-
wrote on 30 Apr 2014, 09:28 last edited by
I had the same problem.
ObjectModel is a type used by the official Qt5 getting started tutorial.
The tutorial: "tut-link":http://qt-project.org/doc/qt-5/gettingstartedqml.html
ObjectModel documentation: "doc-link":http://qt-project.org/doc/qt-5/qml-qtqml-models-objectmodel.htmlYou need to make sure that the qtqml models package is installed as shown here: "sol-link":http://askubuntu.com/questions/450948/module-qtqml-models-is-not-installed
That's what worked for me.