So I found a solution.
I created a slot in the table view in which I call the function openPersistentEditor(...) for every row:
void TableView::makeButtonsPersistentEditors()
{
for (int i=0; i<model()->rowCount(); i++) {
openPersistentEditor
(model
()->index
(i, _filtersColumn,
QModelIndex()));
}
}
void TableView::makeButtonsPersistentEditors()
{
for (int i=0; i<model()->rowCount(); i++) {
openPersistentEditor(model()->index(i, _filtersColumn, QModelIndex()));
}
}
To copy to clipboard, switch view to plain text mode
The slot is connected with the modelReset() signal of the table model.
Cheers woodtluk
Bookmarks