> If you just need to create your objects from QML
Sorry, I should have explained what I'm trying to do. I want to supply
my custom component to layer.effect[0], so that I know when the
contained item is created and can get a handle on it. The contained
item would be a custom effect that I want to
Not sure want you need.
If you just need to create your objects from QML, it’s not mandatory to extend
from QQmlComponent but from QObject.
So, if you create a C++ class derived from QObject called:
class MyNewQML : public QObject
and you register is with qmlRegisterType
you can write into QML
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 custo