ListView with QSqlTableModel
Unsolved
QML and Qt Quick
-
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?
-
Hi,
Did you already saw the Using C++ Models with Qt Quick Views chapter in Qt's documentation ?