Unsolved QLabel pressed stylesheet is ignored
-
Hi Folks,
In below code:QLabel#labelTimer00s{ border-radius: 15px; border-width:4px; border-color: rgb(170, 170, 170); border-style: solid; } QLabel#labelTimer00s:hover:!pressed { border-color: red; } QLabel#labelTimer00s:hover:pressed { color: red; }
hovered works. pressed not! Any ideas?
Thanks in advance. -
I don't see why a QLabel should have a pressed property.
-
@Christian-Ehrlicher thanks for the reply. Aside from sarcasm, does that mean it is not supported?
-
Hi, and welcome!
@Aario said in QLabel pressed stylesheet is ignored:
does that mean it is not supported?
:hover
is not supported in QLabel: https://doc.qt.io/qt-5/stylesheet-reference.html -
This post is deleted!