thank you
just a clarification for a beginner :-) :
I should not use this code examples from the docs (QSqlQueryModel Class Reference) ...
model->setQuery("SELECT name, salary FROM employee");
model->setHeaderData(0, Qt::Horizontal, tr("Name"));
model->setHeaderData(1, Qt::Horizontal, tr("Salary"));
QSqlQueryModel *model = new QSqlQueryModel;
model->setQuery("SELECT name, salary FROM employee");
model->setHeaderData(0, Qt::Horizontal, tr("Name"));
model->setHeaderData(1, Qt::Horizontal, tr("Salary"));
To copy to clipboard, switch view to plain text mode
without adding ... = new QSqlQueryModel(this); ?
I guess everyone knows (besides me .-)
Bookmarks