Solved Custom QML plugin: Cannot assign to non-existent property
-
Hello all,
I am trying to build a QML plugin for Sailfish OS.
The plugin is just a skeleton at the moment, it can be found here:
https://github.com/martonmiklos/harbour-sms-share-plugin/tree/master/vcardserializerIt is installed to the /usr/lib/qt5/qml/hu/mm/vCardSerializer/ properly, and I think it got loaded because the vCardSerializerPlugin::registerTypes(const char *uri) got called for sure.
If I do an import in QML with :
import hu.mm.vCardSerializer 1.0
it still loads fine, but if I create an instance from it in the QML:
vCardSerializer { id: id_vCardSerializer }
I get:
[W] unknown:813 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:813: Error: Error while loading page: file:///usr/share/nemo-transferengine/plugins/SmsShare.qml:79 Cannot assign to non-existent property "vCardSerializer"Any idea, help would be warmly welcome!
-
@martonmiklos
Actually I was struggling with this for a while, and now I did a deeper digging on this forum I have found this:
https://forum.qt.io/topic/91989/qmlregistertype-dont-recogized-into-qml-file/4And it solves my problem...
Many thanks @raven-worx again!