Hi Olivier, indeed there is a problematic issue there, we should compare the exported types and see if something changed (that should be done in 3.0), as of now we assume the worst, and reindex the qml for any edit. To improve the current situation I changed the threshold to 15 seconds without further editing (from 1 s) for 2.8.1, see
https://codereview.qt-project.org/#change,61781 hope this helps Fawzi On 19 Jul 2013, at 16:40, BOUCARD Olivier <[email protected]<mailto:[email protected]>> wrote: 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 <[email protected]<mailto:[email protected]>> À : [email protected]<mailto:[email protected]> 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 [email protected]<mailto:[email protected]> http://lists.qt-project.org/mailman/listinfo/qt-creator _______________________________________________ Qt-creator mailing list [email protected]<mailto:[email protected]> http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
