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