QTCreator 3.1 design tab not working

Posted by user3112140 on Stack Overflow See other posts from Stack Overflow or by user3112140
Published on 2014-05-06T11:52:23Z Indexed on 2014/06/01 15:28 UTC
Read the original article Hit count: 187

Filed under:
|
|
|
|

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 !

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt-creator