[Qt-interest] [solved] Issue with QDataWidgetMapper & QCheckBox
Timothy Reaves
treaves at silverfieldstech.com
Mon Dec 14 21:44:44 CET 2009
On Dec 14, 2009, at 3:14 PM, Timothy Reaves wrote:
>
> On Dec 14, 2009, at 5:18 AM, Jan wrote:
>
>> afaik sqlite has no BOOLEAN datatype. I am using 'true'/'false' in my
>> sqlite databases. Works fine with QDataWidgetMapper.
>>
>> Jan
>>
>
> So you just declare the column as a varchar?
>
The issue ended up being due to the PK. I am displaying it in a QLabel. For some reason, even though the value did not change, it was being set the the default text of the QLabel. I changed the mapper to "text" of the QLabel, and all is well. Boolean, number, text, and read-only label.
Thanks to all who responded. Your help is greatly appreciated!
More information about the Qt-interest-old
mailing list