How to change the focus color of pushbutton as I described in attached image ?
I also changed the background color of button,and also try to palette but still no change occurred in pushbutton, please help me to solve this problem..
How to change the focus color of pushbutton as I described in attached image ?
I also changed the background color of button,and also try to palette but still no change occurred in pushbutton, please help me to solve this problem..
Use stylesheets:
QPushButton:focus:pressed{ background-color: some_colour; }
QPushButton:focus{ background-color: some_other_colour; }
You can either use the Qt Creator to add the styles to your button or load them inside your code by calling setStyleSheet("...")
on your button.