On Wednesday 24 November 2010 14:01:55 ext Gregory Schlomoff wrote: > For the record, I'm creating a custom QML type (ie: a QDeclarativeItem > subclass), exposed through: > > qmlRegisterType<MyClass>("MyCustomClasses", 1, 0, "MyClass"); > > So this seems an intermediary case between QML plugins and random > qobjects exposed through context properties. > > But Qt Creator really isn't happy with that, to the point that it will > underline in red the: > > import MyCustomClasses 1.0 > > statement at the top of my qml files. And of course I won't get any > form of completion or code assistance for those custom types. I hope > that this issue is also being considered by the Qt Creator team, > because it doesn't seem very far from qml plugins.
Yes, I agree that it is important. Unfortunately it's only the same as plugins conceptually - the implementation will have to tie into Creator's C++ code model and hence be entirely different. You can add comments and votes here: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-3199 Cheers, Christian _______________________________________________ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml