Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

invoke C++ method from QML with "parent" as QWidget does not seem to work

$
0
0
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

Viewing all articles
Browse latest Browse all 4972

Trending Articles