Unsolved ListView with QSqlTableModel
I would like to use a QSqlTableModel as a model for a ListView in QML. I used this tutorial to try how to use C++ with QML. This worked very well. Now I would like to store and read the date in a MySql database. How does a QSqlTableModel class have to look like that I can use it in the ListView in QML? Are there any examples around which address this issue?
SGaist Lifetime Qt Champion last edited by
Did you already saw the Using C++ Models with Qt Quick Views chapter in Qt's documentation ?
This post is deleted!