04-12-2013 09:53 AM
I am having following code in C++ file to expose object to qml
QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(th
qml->setContextProperty("_myClass", new MyClass(this));
when I am using the _myClass in qml file I see a i in editor with warning 'unknown symbol'
though the code works fine, but how to fix this warning in editor ?
Thanks for your support,
04-12-2013 09:57 AM
No way of fixing it as far as I'm aware. The QML editor can't take external libraries into account at the moment. Your best bet is to just ignore it.
04-12-2013 05:04 PM
In 10.1, I believe you can whitelist these symbols individually.