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.
#include<QQuickItem>
classTestItem:publicQQuickItem{
Q_OBJECT
public:
explicitTestItem(QQuickItem*parent=0);
virtual~TestItem();
};
QML_DECLARE_TYPE(TestItem)
- VStevenP
________________________________
From: Kosjar Nikolai <[email protected]>
To: VStevenP <[email protected]>; "[email protected]"
<[email protected]>
Sent: Thursday, February 13, 2014 3:36 PM
Subject: RE: [Qt-creator] Problem in Qt Creator 3.0.1
> From: [email protected]
> [[email protected]] on behalf of
> VStevenP [[email protected]]
> Sent: Thursday, February 13, 2014 20:01
> To: [email protected]
> 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 correct
include paths.
Nikolai_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator