Hi

I am changing the stylesheet of button like , it is working fine

Qt Code:
  1. button_out->setStyleSheet("color: rgb(200, 127, 66, 255);
  2. font-family: verdana, ms sans serif; font-size: 14pt;
  3. background-color: rgb(203, 202, 203,150);
  4. border-style: outset;border-width: 2px;border-radius: 10px;
  5. border-color: gray");
To copy to clipboard, switch view to plain text mode 
to change stylesheet on button press it is not giving the desire output.

Qt Code:
  1. button_out->setStyleSheet("color: rgb(200, 127, 66, 255);
  2. font-family: verdana, ms sans serif; font-size: 14pt;
  3. background-color: rgb(203, 202, 203,150);
  4. border-style: outset;border-width: 2px;
  5. border-radius: 10px;border-color: gray;
  6. QPushButton:pressed{ background-color:black}");
To copy to clipboard, switch view to plain text mode 


What is the problem with this.
Waiting for your reply.