[Qt-interest] QDataWidgetMapper and QSqlRelationalTableModelwithout some column

jjDaNiMoTh jjdanimoth at gmail.com
Tue Feb 23 19:08:31 CET 2010


2010/2/23 Scott Aron Bloom <Scott.Bloom at sabgroup.com>:
> Rather than removing the column from the model, hide the column on the
> view.
>
> Scott

The result isn't the same.

Hiding the "id" column, for example, doesn't show at user the column
id, but if he want to edit the row with some things more sophisticated
than the edit-in-place (like the approach I'm using in the example, a
simple dialog box, created by a loop that for every column places a
label and a line edit / combobox ), the id column will be represented
to the user.

I think it is a Qt bug, because only commenting the removeColumn()
line, it works fine, doesn't it?

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



More information about the Qt-interest-old mailing list