[Qt-creator] Very aggressive Qt-Creator indexing with the latest 2.8 beta
BOUCARD Olivier
boucard_olivier at yahoo.fr
Fri Jul 19 16:40:21 CEST 2013
Hi Nikolai,
I think there is no specific place to put it to see the result.
First it was in my main.cpp, QtCreator was indexing main.cpp a lot.
Then I moved it to myclass.cpp, main.cpp was not indexed anymore but myclass.cpp is indexing a lot now.
I'm just trying out the new QML Controls with a very basic desktop application.
Here some code I had in my main.cpp which cause the problem:
UiDelegate uiDelegate;
QQmlApplicationEngine engine;
// If you comment this line, QtCreator stops indexing
engine.rootContext()->setContextProperty("uiDelegate", &uiDelegate);
engine.load(QUrl("qrc:/ui/qml/Main.qml"));
QObject *topLevel = engine.rootObjects().value(0);
QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel);
if(window == NULL)
{
qWarning("Error: Your root item has to be a Window.");
return -1;
}
window->show();
Olivier.
>________________________________
> De : Nikolai Kosjar <nikolai.kosjar at digia.com>
>À : qt-creator at qt-project.org
>Envoyé le : Vendredi 19 juillet 2013 16h24
>Objet : Re: [Qt-creator] Very aggressive Qt-Creator indexing with the latest 2.8 beta
>
>
>Hi!
>
>On 07/18/2013 11:36 PM, BOUCARD Olivier wrote:
>> As soon I have a call to QQmlContext::setContextProperty QtCreator
>> starts to index for every little change.
>
>Could you elaborate a bit more on this? "Where" is the call? Do you have
>an example project?
>
>Nikolai
>
>_______________________________________________
>Qt-creator mailing list
>Qt-creator at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130719/7969ce25/attachment.html>
More information about the Qt-creator
mailing list