R
R
rosperitus2015-03-01 16:13:58
Python
rosperitus, 2015-03-01 16:13:58

How to implement QAbstractTableModel model linking?

What is the best way to implement one-to-many (or master-slave) model communication for QAbstractTableModel? Models will receive data through the Restful API. I wanted that when a record was selected in the master table, the slave tables were updated.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2015-03-01
@gbg

Models are not involved at all here, this is a matter of interaction between views - on a signal from the view of the main table, you need to update the data in the models of child tables.

L
Lolshto, 2015-03-01
@Lol4t0

A proxy that catches selectionchanged and updates itself, updating all slave views.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question