PDA

View Full Version : Mapping between two comboboxes



codeman
28th December 2009, 16:12
Hello Friends,

I have to fill two comboxes with two different columns from two different tables.
the pk from first table are as a normal column in the second table.
So when I change the first combo the population from the second combo must be updated.

Is there a mechanism to implement this behavior???

spirit
28th December 2009, 17:32
use QComboBox::setModel with QSqlRelationalTableModel.