How to implement communication models QAbstractTableModel?

How best to implement the communication patterns one-to-many (or master-slave) for QAbstractTableModel? Models will receive data via a Restful API. Wanted to when you select a record in master-tablice, updated slave table.
September 19th 19 at 00:34
2 answers
September 19th 19 at 00:36
The model here at all at Affairs, it is a question of interaction of representations - on signal from the main table view needs to refresh data in models of child tables.
ie you need TableView'child's need to attach to the main TableView in the currentRowChanged? - landen_Schowalter53 commented on September 19th 19 at 00:39
: How would Yes. - Erling_Hansen79 commented on September 19th 19 at 00:42
September 19th 19 at 00:38
A proxywhich catches selectionchanged and updated, along with updates to all the slave view.
Read about the QAbstractProxyModel and QSortFilterProxyModel descendant and I understand how to use these classes. Do You have an example? - landen_Schowalter53 commented on September 19th 19 at 00:41
For example, once gave a good link: lynxline.com/jongling-qt-models - Erling_Hansen79 commented on September 19th 19 at 00:44

Find more questions by tags PythonPyQtPySideQt