instead of:
model->removeColumn(0); // don't show the ID
model->setHeaderData(0, Qt::Horizontal, tr("Deutsch"));
model->setHeaderData(1, Qt::Horizontal, tr("Portuguiesisch"));
model->removeColumn(0); // don't show the ID
model->setHeaderData(0, Qt::Horizontal, tr("Deutsch"));
model->setHeaderData(1, Qt::Horizontal, tr("Portuguiesisch"));
To copy to clipboard, switch view to plain text mode
try this:
ui.tableView->setColumnHidden(0, true);
model->setHeaderData(1, Qt::Horizontal, tr("Deutsch"));
model->setHeaderData(2, Qt::Horizontal, tr("Portuguiesisch"));
ui.tableView->setColumnHidden(0, true);
model->setHeaderData(1, Qt::Horizontal, tr("Deutsch"));
model->setHeaderData(2, Qt::Horizontal, tr("Portuguiesisch"));
To copy to clipboard, switch view to plain text mode
Bookmarks