I am trying to set the hover state color for 2 labels inside a QFrame using a stylesheet, but the frame accepts hover states regardless of whether there is an actual hover:
See screenshot: 
I have a QFrame with QLabels. I set the default colors to green and purple. When you hover over a QFrame, the color of both labels should turn red.
Exactly the same CSS works with html , but I can't get it to work with QT style sheets.
div{background-color:black; width:200px; height:100px;} #label1{color: green;} #label2{color: purple;} div:hover #label1 {color: red;} div:hover #label2 {color:red;}
source share