[Interest] Get background color and margins from QTreeView item

Konrad Rosenbaum konrad at silmor.de
Tue Oct 29 08:28:27 CET 2013

On Monday 28 October 2013 15:42:53 Philipp Kursawe wrote:
> is it possible to get the background color and margins for a specific item
> in a treeview from outside the treeview?

Yes, there is a background color role that you can query from the model. If 
there is no data for this role, the default background color for the view is 
used (check its palette).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131029/0194de1e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131029/0194de1e/attachment.sig>

More information about the Interest mailing list