I stacked in a problem which is displaying images in each row in photo's column from SQLite Database
Here is my code and thanks in advance:
admin.cpp
void Admin::on_pushButton_2_clicked()
{
ui->stackedWidget->setCurrentIndex(2);
QSqlQueryModel *modal = new QSqlQueryModel();
this->model = new QSqlQueryModel();
model->setQuery("select * from professeur");
// qDebug()<<model->lastError();
ui->tableView_prof->setModel(model);
}
I solved my problem here is the code