title: QPushButton focus
body: <p>I have a pushbutton which its background image gets changed regularly according to the packets ui receives from serial. When the user clicks the button, it becomes red with borders. </p>
  
  <pre><code>pb_Jack1Up  -&gt;setStyleSheet("QPushButton {border-image: url(:/ArrowKey/Up_Default.jpg);  } QPushButton:focus {border-width: 1px;border-style: solid; border-radius: 4px;}");
  </code></pre>
  
  <p>Now, what I want is to give the button some effects, to make the user understand that the button is clicked. like make the button go inside when clicked, and when user releases the button border shall no longer be set anymore. However, in my case the button border remains. I cannot also set style sheet with pressed and released slots, because the background image depends on what we receive from serial. </p>
  
  <p>Could anyone help me please?</p>