How to populate a QML List with QStrings from C++ using signals?
This post is deleted!
If you want to manipulate the model from C++, it would make sense to use a C++ model instead of QML ListModel. For example, if you need nothing else but a list of strings, you could use
Okay so if have a QStringListModel in C++ and I populate it intermittently with strings supplied by some function, how can attach the QStringListModel to the ListView in QML?
Hi! There is an nice explanation of how to use QStringList-based models: Using C++ Models with Qt Quick Views.