Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1
-
None
Description
Registering the 2.0 version of a type before 1.0 causes "import ModuleName 2.0" to pick up the 1.0 version:
qmlRegisterType<BuggyVersion2>(uri,2,0,"Buggy"); qmlRegisterType<BuggyVersion1>(uri,1,0,"Buggy"); import Qt 4.7 import BuggyModule 2.0 Buggy {}
Reversing the order of the registrations fixes the problem. See attached example.