When I add padding in a QPushButton’s stylesheet the animation doesnt occur during button press,release:
QPushButton{
border: 1px solid green;
padding: 2px;
border-radius: 4px;
}
By that, I mean the button text does not sink in.
Is this normal?
it is not possible to add padding and see the text sink in. The only way I could see it possible and I havent tried it would be to translate the text to the right and to the bottom on the pressed sub-control but that remains to be tested.