How are these method of XYSeries QML Type exported to qml without Q_INVOKABLE macro in the class QXYSeries?
Solved
QML and Qt Quick
-
wrote on 12 Oct 2019, 11:37 last edited by Crawl.W 10 Dec 2019, 11:43
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? -
wrote on 12 Oct 2019, 15:56 last edited by
There can be a
quick
wrapper around this class. Also everyslot
can be invoked from QML like it is marked as invokable. -
wrote on 13 Oct 2019, 03:25 last edited by Crawl.W
Can you use
XYSeries
for example? I couldn't find aquick
wrapper.
And will thequick
wrapper export all public method of c++ class? However, there are no conversion for some type. -
wrote on 13 Oct 2019, 04:28 last edited by Crawl.W
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.
2/4