Hi All,
I've a tool button, it is implimented in a class. and i'm creating the object of tool button in mainwindow class. And the back ground color of tool button is of rgb 128,128,128. I need to fade the color if it is disabled. I did like below.

Qt Code:
  1. button->disableToolButton(true);
  2. button->setStylesheey("background color : QColor(140,140,140)");
To copy to clipboard, switch view to plain text mode 


But its not working. Any suggestion, how to achieve it??

N.B : I'm overriding the paintevent of QtoolButton, in my toolbutton class.