Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTCreator 3.1 design tab not working
QtWS25 Last Chance

QTCreator 3.1 design tab not working

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.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.
  • N Offline
    N Offline
    Nain57
    wrote on last edited by
    #1

    Hi,

    I'm currently using QtCreator 3.1 and qt-everywhere-opensource-src-5.2.1 on Ubuntu 12.04
    My project is correctly working, i.e., i can build it and run without any trouble.

    But i've got some problems with the design tab inside Qtcreator.

    First, on all qml file (even with example projects), i have an error message "Using Qt Quick code model instead of Qt Quick2 (M324) (4:1)" and i can't use the design editor.

    Second, on qml files with other import than QtQuick 2.2 (for me QtQml.Models 2.1 and QtQuick.Controls 1.1), the import is underlined in red with the error message "QML module not found".
    I've tried to edit the .pro file by adding QML2_IMPORT_PATH=/home/user/qt-everywhere-opensource-src-5.2.1/qtquickcontrols/qml/QtQuick/Controls/ (also tried with QML_IMPORT_PATH), it doesn't work.
    Then, I tried to add it to my path in a terminal using "export QML_IMPORT_PATH=/home/user/qt-everywhere-opensource-src-5.2.1/qtquickcontrols/qml/QtQuick/Controls/" and this time, in the error message, i can see the added path in the error message, but it still doesn't work.

    Anyone has an idea to help me ?

    Thx !

    1 Reply Last reply
    0
    • T Offline
      T Offline
      ThomasHartmann
      wrote on last edited by
      #2

      For the imports to work properly and to get rid of M324, you need a properly configured project. Then the code model gets all the info it needs from the Qt you configured for your project.
      The code model will pick up the information from the qml directory of qtbase and parse the plugins.qmltype files.

      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