Invoke C++ method from QML with "parent" as QWidget does not seem to work
-
When I try to call this
@Q_INVOKABLE void create(QWidget* parent)@ from my QML with "parent" property of my MouseArea, the parent is always NULL in C++. I think I know the reason for that: The "parent" is just a QML declarative object, not a widget.
So the question is, how do I get the actual QML "host" widget from within QML code? The "host" widget in my case would be a QQuickView