Nathan Nathan - 9 months ago 64
C++ Question

Sending a list of strings from QML to C++

I have ListModel which I manage in QML. After editing I want to send this model to C++ (as a QStringList for example, or something else I can work with in c++).

I know I can expose a list from C++ to qml and edit it from there, but for my app logic that does not really make sense. Can I somehow create a list like datatype in QML which I can send to c++ with a signal?

Answer Source