PDA

View Full Version : Combine custom delegate and model data() roles



qlands
19th September 2011, 07:11
Hi,

I have a custom model that colorizes each item based on a criteria using data() and its roles. This works correctly however if I use a custom delegate for some of the items the delegate draw() takes precedence over the model data() function. How can I combine them? Meaning, assign some draw aspects to data() like the background color, font type, etc, but delegate just the drawing of the item's data to the custom delegate?

Thanks,
Carlos.

qlands
4th October 2011, 12:43
Hi,

Can anyone give me some advice on this topic?

Many thanks in advance,
Carlos.