[Qt-interest] Alignment in QTableView
Sean Harmer
sean.harmer at maps-technology.com
Wed May 26 18:20:09 CEST 2010
On Wednesday 26 May 2010 17:10:15 Andreas Pakulat wrote:
> Note: I've not read the complete thread, but wanted to note this:
>
> Well, its not in the model, unless you put it into the model. The
> ultimate control over how the view items look like is in the delegate
> and thats neither view nor model. The view mostly just does layouting
> job, the model provides data and everything else is done in the
> delegate.
>
> The fact that the model has roles for font's, text-alignment and colors
> doesn't mean you should/have to use them. You can do this stuff just as
> well in the delegate.
True, maybe we just need a delegate that ignores those presentational roles
and a set of vies that use the new delegate and provide a convenient API for
setting such presentational aspects.
If only I had some time to do it. ;-)
Sean
More information about the Qt-interest-old
mailing list