Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] ObjectModel is not a type

[Solved] ObjectModel is not a type

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ottoshmidt1
    wrote on last edited by
    #1

    I get an error

    "ObjectModel is not a type "

    although,

    import QtQuick 2.0
    import QtQml 2.0

    are there.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      onek24
      wrote on last edited by
      #2

      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-access

      To help you i would appreciate a little bit more code or information on what you are trying to do.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        ottoshmidt1
        wrote on last edited by
        #3

        Thanks, I guess it was just given as an example in docs.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          onek24
          wrote on last edited by
          #4

          You're welcome. Feel free to ask if you have got more questions.

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xpcoffee
            wrote on last edited by
            #5

            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.html

            You 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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved