How are these method of XYSeries QML Type exported to qml without Q_INVOKABLE macro in the class QXYSeries?
-
I have viewed chartsqml2_plugin.cpp and qxyseries.h before, but I could not find
Q_INVOKABLEmacro before function declaration. Is there any way to export the function from c++ to qml? -
There can be a
quickwrapper around this class. Also everyslotcan be invoked from QML like it is marked as invokable. -
I just noticed that
XYSeriesis a uncreatable type, its derived object'sQ_INVOKABLEmethod invoke member method ofDeclarativeXySeriesclass, andDeclarativeXySeriesis a shadow class aboutXYSeries. Such asLineSeriesis imported from DeclarativeLineSeries.