Propagate QML events to C++
问题 I would like to propagate event from a QML signal handler to C++ procedure but don't know how to pass the "event object". Take a look at this situation and pay particular attention to SomeType . First I create a custom QML item with a slot that can be called from QML: class Tool : public QQuickItem { . . . public slots: virtual void onMousePositionChanged(SomeType *event); } Then, in QML, I create a MouseArea and an instance of my custom object to which I wanto to propagate events to.