What is the best way to pass series of data to QML (from python)

238 Views Asked by At

I need to pass x,y data (computed in python) to Qt Charts (using QML) and plot it. I can use Signal and slot with arguments (int, bool, string) but can not use it with array or list. Is that even possible? Maybe the better way to pass my data from python to QML would be through some file (csv,txt) - python saves x,y data and QML will read it and plot it? Is that even possible?

The total goal of my question is directed to ploting data (from python) in Qt Charts (QML and Qt Creator).

Thank you for any help. I am newbie in that..

0

There are 0 best solutions below