I change the background color of a QPushbutton when pressed with the following code:
Qt Code:
  1. self.ui.SaveBtn.setStyleSheet(
  2. self.ui.SaveBtn.styleSheet() +
  3. 'QPushButton:pressed { background-color: #99ff99; border: 2px solid #097547; }')
To copy to clipboard, switch view to plain text mode 

It works fine - the button changes color as long as I hold the mouse button down. I was wondering if there is a way to make the button remain the new color for a second even after releasing the mouse button? What I want is kinda like setting the duration of a .setToolTipDuration(2000), for example. Even when the button is quickly clicked and released, I would like the new color to remain for a brief time before reverting back to original color.

Thanks