[Qt-interest] Displaying NULL values using QDataWidgetMapper
saikari keitele
saikari78 at gmail.com
Thu Jan 21 13:46:19 CET 2010
Hello,
I'm using a QDataWidgetMapper to display and edit the fields of a database
table.
I have mapped a lineEdit to an integer column in the table. When this column
has a null value in the database, it is displayed with the value 0 in the
lineEdit. However I would like it to be displayed as the empty string so
that the lineEdit appears blank when the value is NULL. What is the simplest
way of doing this?
Thank you very much for any help,
saikari keitele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100121/acdf653c/attachment.html
More information about the Qt-interest-old
mailing list