Skip to content
Advertisement

Tag: qdatawidgetmapper

How to properly submit data when using QDataWidgetMapper?

I’m using a custom model subclassed from QAbstractTableModel, my data is a list of dataclasses. I’ve set up a simple GUI with a QListView and two QLineEdits, like so: I’m trying to achieve that whenever I change the contents of the first QLineEdit, the list-view is updated as well. From reading the documentation for QDataWidgetMapper I know that the model

Advertisement