I have a setup that uses a QTableView with a QSqlRelationalTableModel and a QDataWidgetMapper to edit the values of the active row in the table view: Everything works as expected when I set the QRelationalTableModel instance as the view’s model. But when I use the proxy model, as above, changes in comboboxes do not update the view. But they show
Tag: qsortfilterproxymodel
Is it posible to find index-row and values with QRegExp with search name?
I want to find the row-index with searching word using with QSortFilterProxyModel and QtCore.QRegExp. I want to create a list with “mobile” and “email” columns only from the row which is finding from the variable of QRegExp. Below is example code: I want to print the row.index and insert the value of “mobile” and “email” of the row into list_a.
Inserting rows in QTreeView that uses QSortFilterProxyModel
I have a very basic app that displays a tree view and a button that adds items to that tree view, using current selection as a parent. Inserting a first level child works well while inserting the 3d level child fails for some reason (it just is not displayed after inserting is done. I’ve prepared fully verifiable code that you