问题
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:
来源:https://stackoverflow.com/questions/65612312/qsqltablemodel-displays-images-from-sql-query-saved-as-blob