How would one go about create a glowing border around a button when a user hovers over it in PyQT4 QSS? I'm speaking of something similar to the box-shadowin CSS. 
someButton:hover {
    border:1px solid black;
    /*Glowing code here?*/
}

One way to do this, would be to use setGraphicsEffect with a QGraphicsDropShadowEffect:
    effect = QtGui.QGraphicsDropShadowEffect(button)
    effect.setOffset(0, 0)
    effect.setBlurRadius(20)
    button.setGraphicsEffect(effect)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With