Comment 4 for bug 1100795

Revision history for this message
Loïc Molinari (loic.molinari) wrote :

While debugging #1308453 [1], I realized it's actually a dup of that one. The source of the bug comes from the use of qmlRegisterExtendedType() to extend QQuickImageBase, it seems that if a QQuickImageBase class has been instantiated before the registration, the registration doesn't work.

A workaround for that is to make the registration happen early enough by importing Ubuntu.Components as soon as possible.

[1] https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1308453