[Interest] Subclassing QQmlComponent for use in QML
Evgeny Grablyk
evgeny.grablyk at gmail.com
Fri Jun 19 12:44:44 CEST 2015
Hello,
I need a subclass of QQmlComponent that would be usable inside QML
documents just like a normal Component, in order to have more control
over the return value of create().
However, simply creating a subclass in C++ and registering it via
qmlRegisterType() fails: attempting to use the custom component
results in "Cannot assign to non-existent default property" error.
I've failed to find any documentation or examples on the topic. Should
this be possible from user code at all? If so, what is the correct way
to subclass a QQmlComponent?
Thanks.
More information about the Interest
mailing list