[Interest] TreeView cells background color with delegate

Nicolas Krieger nicolas.krieger at medecom.fr
Tue Nov 13 13:49:55 CET 2018


I have made a mistake in my explanations, there are delegates for 
columns, not rows.

Le 13/11/2018 à 12:21, Nicolas Krieger a écrit :
>
> Hello,
>
> I have a QTreeView with delegates for some rows, but not all rows.
>
> I would like to unified the colors in the rows.
>
> In the capture, there is only a delegate for the first column. I 
> display informations the way I want, but I can not find the good way 
> to display the background when the row is hovered or selected.
>
> In the capture, the first row is hovered and the second one is selected.
>
> I have tried using "highlight" or "lighter/darker" but it seems it is 
> not the good options.
>
> I know how to use the color for the background, but I don't know which 
> color to use for the background of my delegate.
>
> Any idea ?
>
> -- 
> *Nicolas Krieger*
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-- 
*Nicolas Krieger*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181113/326b60ff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: djjgaoojeojoicad.png
Type: image/png
Size: 2931 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181113/326b60ff/attachment.png>


More information about the Interest mailing list