[Development] Setting QTreeView selected item style in qss

Ruan leitão ruanrln at gmail.com
Wed Dec 23 17:34:53 CET 2015

I already have post this question in Stack Overflow
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/development/attachments/20151223/7053d1f1/attachment.html>

More information about the Development mailing list