Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.0.2, 5.1.0 Beta 1, 5.1.0
-
None
Description
Its currently impossible to use qmlRegisterType<X> for both Quick1 and Quick2 in the same application. Since the functions are identical in both qqml.h and qdeclarative.h, the linker will only allow one instance of the function. So even if you only include qqml.h in one translation unit and qdeclarative.h in the other. The linker still selects one of the two implementations for all calls to it.
We have a codebase of ~10000 lines of qml code and we cannot just disable the old system while porting to the new Quick2.
A dirty workaround for now is to encase qqml.h's qmlRegisterType with a namespace, but a better solution would be prefered.