model ?
-
how to use QStandardItemModel to load data from SQL Server to table view ?
i can use QSqlQueryModel and QSqlTableModel, but QStandardItemModel is not.@Duy-Khang said in model ?:
i can use QSqlQueryModel and QSqlTableModel
Those are the most straightforward tools
how to use QStandardItemModel to load data from SQL Server to table view ?
Run a
QSqlQuery
, iterate over the results and load them into the model