I am trying to display a products type table with product name price and image using QSqlTableModel, but can't figure out how to do it.
QSqlQueryModel *model = new QSqlTableModel();
model->setQuery(query);
ui->produit_table->setModel(model);
table preview:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…