I am new to using QSql classes, been a few years since I have done any Qt programming, actually. My model:

Table: PriceList
Fields: PriceListId, Name

1 ...* to

Table: ProductItem
Fields: ProductItemId, PriceListId, ...

The ProductItem table has a foreign key (PriceListId) to the PriceList table.

I have a ComboBox who's model is the PriceList model. There is a TableView under it, when a different PriceList is selected, I want the TableView to update. How do I wire up the QSqlRelationalTableModel?

Sam