[Qt-interest] Issue with QDataWidgetMapper & QCheckBox

Jan janusius at gmx.net
Mon Dec 14 11:18:00 CET 2009


afaik sqlite has no BOOLEAN datatype. I am using 'true'/'false' in my 
sqlite databases. Works fine with QDataWidgetMapper.

Jan

Timothy Reaves schrieb:

>> 	I am setting the mapping thus:
>>
>> telescopeMapper->addMapping(ui->telescopeVFlip, 4, "checked");
>> telescopeMapper->addMapping(ui->telescopeHFlip, 5, "checked");
>>
>> Is that not correct?
> 
> 
> 	I think this might be because Qt is sending true & false (as string), and the sqlite can not convert to the 1 or 0 (as int) that is its BOOLEAN datatype.
> 



More information about the Qt-interest-old mailing list