[Interest] Get background color and margins from QTreeView item

André Somers andre at familiesomers.nl
Tue Oct 29 08:39:13 CET 2013

Op 29-10-2013 8:28, Konrad Rosenbaum schreef:
> 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).
It's not that easy. There may be other factors involved: style sheets, 
custom delegates... So the general answer is: "no", but in a more 
constrained environment, the answer is "maybe".


> Konrad
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

You like Qt?
I am looking for collegues to join me at i-Optics!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131029/4f295f31/attachment.html>

More information about the Interest mailing list