[Qt-creator] Problem in Qt Creator 3.0.1

Jason H scorp1us at yahoo.com
Fri Feb 14 01:56:46 CET 2014

When I see this, its because I did not add the module to QT as in:

QT += quick 

The hint is QQuickItem is not colored. 

I've gotten inconsistent behavior over the years on if you can get away with certain packages or not, but its always this when it happens. 

 From: VStevenP <vstevenpavao at yahoo.com>
To: Kosjar Nikolai <Nikolai.Kosjar at digia.com>; "qt-creator at qt-project.org" <qt-creator at qt-project.org> 
Sent: Thursday, February 13, 2014 7:22 PM
Subject: Re: [Qt-creator] Problem in Qt Creator 3.0.1

I wasn't able to run QtCreator in that mode to see the output on Mac.  I tried setting and exporting the environment, launching manually in Terminal, but saw no output.

Interestingly enough, this syntax highlighting problem happens in Qt 5.2.1 with the absolute simplest project I just created via the Qt Creator project wizard.  So the concern about .pro syntax seems for naught.

Here is the simple class where it underlines the #include QQuickItem in yellow and QML_DECLARE_TYPE in red on my system.  There is nothing special in the .pro file.  It's wizard-created, and I added my TestItem.cpp to SOURCES and TestItem.h to headers.  Simple stuff.





 - VStevenP

 From: Kosjar Nikolai <Nikolai.Kosjar at digia.com>
To: VStevenP <vstevenpavao at yahoo.com>; "qt-creator at qt-project.org" <qt-creator at qt-project.org> 
Sent: Thursday, February 13, 2014 3:36 PM
Subject: RE: [Qt-creator] Problem in Qt Creator 3.0.1

> From: qt-creator-bounces+nikolai.kosjar=digia.com at qt-project.org [qt-creator-bounces+nikolai.kosjar=digia.com at qt-project.org] on behalf of VStevenP [vstevenpavao at yahoo.com]

> Sent: Thursday, February 13, 2014 20:01
> To: qt-creator at qt-project.org
> Subject: [Qt-creator] Problem in Qt Creator 3.0.1
> In Qt Creator 3.0.1, it doesn't recognize my #include <QQuickItem> anymore.

* Double check your kit configuration.
* Restart Qt Creator with the environment variable
  QTCREATOR_DUMP_PROJECT_INFO=1 set and watch the
  output for  "=== Merged include paths ===". Do you see the include
  path for QQuickItem? If not, the code model did not get the
  include paths.


Qt-creator mailing list
Qt-creator at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140213/c5a0cb80/attachment.html>

More information about the Qt-creator mailing list