I’m having a problem with my stylesheet on a QPushButton:
QPushButton#convertButton
{
color: #00FF00;
}
Pretty simple as you can see and the text colour gets set correctly. The problem arises when i click the button, a strange artefact appears like an inner part of the button has been selected. Unfortunately i don’t have enough rep to post an image.
If i remove the stylesheet the artefact does not appear on press.
Any help welcome. Thanks!
I found a solution:
This removes the artefact, but unfortunately the ‘shading’ style of a focused widget is now also lost. If someone knows how to retain this please let me know (i couldn’t find the default stylesheet online).