[Interest] [qt-4.8 windows] Setting QTreeView selected item style in qss

Ruan leitão ruanrln at gmail.com
Tue Dec 29 16:31:09 CET 2015


Hello,
I already have post this question in Stack Overflow
<http://stackoverflow.com/questions/34187874/setting-qtreeview-selected-item-style-in-qss>,
but a have no answer. Now a friend tell me to talk on the mailing list.

I need to change the background color of the *selected item* on a
QTreeView. I already tried using the Qt examples and other SO questions.

The style applied to the ::branch subcontrol works fine, but none of the
commands in the ::item subcontrols works.

Here my current result:

[image: enter image description here] <http://i.stack.imgur.com/kQyGk.png>

But I want a result like this:

[image: enter image description here] <http://i.stack.imgur.com/TjucU.png>

Can someone help me, thanks in advance.
Ruan L. Nunes
-- 
Ruan L. Nunes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151229/b5e3ebfc/attachment.html>


More information about the Interest mailing list