Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11328

Imported CMake project complains about "Using Qt Quick 1 code model instead of Qt Quick 2 M324"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 3.0.0
    • None
    • Windows 7 64 bits.
      Qt 5.2.0
      Qt Creator 3.0.0

    Description

      When importing a very minimal CMake project into Qt Creator, the Qml text editor and designer complains about "Using Qt Quick 1 code model instead of Qt Quick 2 M324".

      I have tried adding add_definitions(-DQML_IMPORT_PATH=...) which did nothing. I have also tried adding QML_IMPORT_PATH to the environment variables.

      Update: I forgot to mention, that the problem can be solved by opening another project in the same Qt Creator instance, if the other project is a standard QMake project.

      Update 2: I made a mistake when adding the QML_IMPORT_PATH environment variable. With this corrected, Qt Creator works as it should, but I think this should work without adding an environment variable, as it does with QMake.

      Attachments

        1. anotherprojectopen.png
          anotherprojectopen.png
          10 kB
        2. CMakeLists.txt
          0.4 kB
        3. m324.png
          m324.png
          12 kB
        4. main.cpp
          0.1 kB
        5. main.qml
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dt Daniel Teske
            jhe Jesper Hellesø Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes