On Fri Feb 03 2012 11:47:20 GMT+0100, noru...@me.com <noru...@me.com> wrote:
> Hello @all,
>
> lets say I have a model with 5 columns and 3 rows.
>
> The delegate should set the background color for the individual rows
> depending on which value is in column 2.

Is the delegate set as column-delegate for all columns?

> Now my main problem is that when I change the value of column 2, then
> only the background of column 2 is changed.
>
> How can I update the view so that all columns are updated?

Use the data()-function of the model with Qt::BackgroundRole or set 
the/a delegate on every column.

Timo
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to