I really would like to know how to get this class to work. The code i have written so far in trying to get it to work is as follows:
the documentation says:
i have tried this, using some editors that have in a form i created, but the data form my database is not being displayed. Any help on how to get this to work will be greatly appreciated.The following code will map the columns of the model to widgets called mySpinBox, myLineEdit and myCountryChooser:
QDataWidgetMapper *mapper = new QDataWidgetMapper;
mapper->setModel(model);
mapper->addMapping(mySpinBox, 0);
mapper->addMapping(myLineEdit, 1);
mapper->addMapping(myCountryChooser, 2);
mapper->toFirst();
using qt 4.2
Bookmarks