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 unknown component (M300)
QtWS25 Last Chance

[SOLVED]ObjectModel unknown component (M300)

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 7 Posters 13.3k 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.
  • M Offline
    M Offline
    massau
    wrote on last edited by
    #1

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

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      massau
      wrote on last edited by
      #2

      i have reinstalled qt itself but the object model component is still missing. is there a way to add it manually?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qnoobish
        wrote on last edited by
        #3

        Are you importing the correct version of import QtQuick in your QML ?

        In short, software is eating the world.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          massau
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Muhammad
            wrote on last edited by
            #5

            I have the same problem with Qt 5.1 for Android

            I don't have endpoint, I just have Checkpoints.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              griso1981
              wrote on last edited by
              #6

              Hi massau, how did you resolve this problem? I have the same btu I cannot fix it.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                ligras
                wrote on last edited by
                #7

                Hi,
                I think you should import QtQml.Models 2.1 also.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Archie888
                  wrote on last edited by Archie888
                  #8

                  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)

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Archie888
                    wrote on last edited by
                    #9

                    Actually, it seems that it does work when the application is run, even though the symbol is marked as erroneous in Creator.

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Demissy
                      wrote on last edited by
                      #10

                      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.

                      1 Reply Last reply
                      2

                      • Login

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