Hey Bastien,
2011/10/19 Bastien AMIEL <bastien.am...@opencubetech.com>
> I made something a bit different to do the job :
> I added a second line where I repeat the "step" under A1 A2 A3 (using
> header multiline).
>
> It's ok but I would like to set different colors for the backgrounds of
> A1...A3 but doing this :
>
> mitemModel->setHeaderData(ii, Horizontal, style, StyleClassRole);
>
> set the style for the WText only and not for the whole (header) container.
>
> Is there any other way to do this than going for a Custom
> HeaderItemDelegate ?
>
Even a custom headeritem delegate wouldn't help, because only the contents
of the "label area" is currently delegated (mostly because of the
sort/resize handles kind of interfering with the rest).
But I just reworked last week how a header item is being rendered in a
header, and now things are much more sane (and simple). I'm not sure that
exanding the item delegate to the whole header item area is feasible, but
I've made it now such that the StyleClassRole applies to the entire header
item cell.
Regards,
koen
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest