Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.3.2
-
None
Description
When I set a stylesheet like this
#settingsbutton {
color: #f00;
background-color: #0f0;
}
#settingsbutton:hover {
color: #00f;
}
and try to draw something like this in the overridden paint member:
// Draw a simple circle
QPainter p1(&icon);
p1.setRenderHint(QPainter::Antialiasing, true);
p1.setPen(this->palette().brush(QPalette::Active, QPalette::WindowText).color());
p1.setBrush(QBrush(this->palette().brush(QPalette::Active, QPalette::WindowText).color()));
p1.drawEllipse(r);
The foreground color is not used if I hover over the button