I'm writing this program in Qt that implements an SQLite database. I've got a list in QML that needs to contain output from an SQL query. I've written a function in C++ that I've made invokable from QML using a Q_OBJECT and returns a QStringList, but I don't know how to go about assigning the returned QStringLisy to the list view's model. Any ideas? This is what I have thus far in QML
model: funtionthatreturnsQStringList(QString query);
Aucun commentaire:
Enregistrer un commentaire