I was not going to add them to jsroot.qmltypes. I was wondering if there was a mechanism to extend what is defined in jsroot.qmltypes.

That is pretty much the same thing. jsroot.qmltypes represents the JavaScript global object. Since all of this is pure JavaScript, we can generally not say much about the types involved. However, since the JavaScript global object is supposed to be immutable in a QQmlEngine (I wonder how you managed to add something to it, btw), we actually _know_ what is in there because we know the precise implementation in the engine's internals. Once you start adding something there, we don't know anything about the types anymore. So, don't.

best regards,
Ulf Hermann
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to