Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, April 2008
QDataWidgetMapper, db tablesa nd relations


Message 1 in thread

Hi all,
I have 3 db tables, the first is the base and the others 2 tables are 
linked to the base using a foreign key.
Then I have a form with inside a lot of controls some linked to the base 
table and others linked to the other 2 tables. The problem is that I 
don't know the way to map the form controls to the fields of the other 2 
tables. I am able to map the controls to the base table and they work; 
also I am able to map single controls to the foreign key fields also 
displaying different fields on the controls.
All the data on the forms have to be read/write data.
begin:vcard
begin:vcard
fn:Massimo Manca
n:Manca;Massimo
org:Micron Engineering di Massimo Manca
adr:;;via della Ferriera, 48;Pordenone;PN;33170;ITALIA
email;internet:massimo.manca@xxxxxxxxxxxxxxxxxxxx
tel;work:+39 0434 1856131
tel;fax:+39 0434 1851032 / 178 273 3543
tel;cell:+39 349 4504979
url:http://www.micronengineering.it
version:2.1
end:vcard