Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED]ObjectModel unknown component (M300)

    QML and Qt Quick
    7
    10
    12057
    Loading More Posts
    • 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
      massau last edited by

      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 Reply Quote 0
      • M
        massau last edited by

        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 Reply Quote 0
        • Q
          Qnoobish last edited by

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

          In short, software is eating the world.

          1 Reply Last reply Reply Quote 0
          • M
            massau last edited by

            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 Reply Quote 0
            • M
              Muhammad last edited by

              I have the same problem with Qt 5.1 for Android

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

              1 Reply Last reply Reply Quote 0
              • G
                griso1981 last edited by

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

                1 Reply Last reply Reply Quote 0
                • L
                  ligras last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • A
                    Archie888 last edited by Archie888

                    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 Reply Quote 0
                    • A
                      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.

                      1 Reply Last reply Reply Quote 0
                      • D
                        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.

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post