Hello,
Im using a Qdatawidgetmapper to map a datum field from my sql server database to a Qcalanderwidget. i use onfieldchange and autosubmit.
when load the form or change to an other row it works. the date changes.
But when i change the valuwe it is not committed the database.
i tryed:
connect(ui->QCalenderWidgetAfleverdatum, SIGNAL(selectionChanged()),mapper,SLOT(submit()));
but the it is submitting NULL to the database
Mapper->addMapping(ui->QCalenderWidgetAfleverdatum ,orderGegevens->record().indexOf("leverdatum"), "selectedDate");
i'm getting : QODBCResult::exec: unable to bind variable: "[Microsoft][ODBC SQL Server Driver]De optionele voorziening is niet geïmplementeerd"
How can i connect Qdatawidgetmapper to a calenderwiged and make ik work?
Bookmarks