[Qt-interest] QDataWidgetMapper unable to deal with NULL values?

bar tomas bartomas at gmail.com
Wed Jan 20 13:35:01 CET 2010


Sorry, I forgot to mention in my earlier post that the
QDataWidgetMapper I've created uses a QSqlRelationalTableModel and
from what I've seen in archived posts on this list, other people have
also encountered the problem of QSqlRelationalTableModel being unable
to handle NULL values.
Has this been fixed?
Is there a way around this?
Many thanks

On Wed, Jan 20, 2010 at 11:22 AM, bar tomas <bartomas at gmail.com> wrote:
> Hi,
>
> I'm using QDataWidgetMapper to navigate through the records of a
> database table with a form-like interface with mappings between the
> widgets and the table columns.
> The problem is that whenever any of the table columns that are mapped
> to a widget in the form have a NULL value, the record isn't displayed
> at all. When I navigate to the next record the QDataWidgetMapper just
> skips a record if it contains any NULL values.Is this a bug or is
> QDataWidgetMapper unable to deal with NULL  values?
> Many thanks
>




More information about the Qt-interest-old mailing list