[Solved]Repaint widget after qss
-
Hellow!
I have qss code:
@QPushButton[checked=false]{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #8cfa25, stop: 1 #68d601);
border-radius: 4px;
border: 1px solid #8f8f91;
min-height: 60px;
min-width: 60px;
}
QPushButton[checked=true]{
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fa9090, stop: 1 #d66c6c);
border-radius: 4px;
border: 1px solid #8f8f91;
min-height: 60px;
min-width: 60px;
}@
When i click on the button, there is no repaint and button lukes like uncheked, but it is cheked
How can i fix it?
In advance many thanks for your help! -
Hi Ruzik,
Are you sure, the button is checkable?
Pressing the button is not checking it automatically.It must have the property
@
checkable = true
@And I'm not 100% sure, whether clicking a checkable button also checks it, it should do, but I'm not sure.