To bring the user's attention to the text field with an error (or if it is not filled) I colorize this QLineEdit) using:
red = "QWidget { background-color:#8B0000;}"
my_cool_QLineEdit.setStyleSheet(red)
That makes an entire background of this QLineEdit red. While the message is definitely sent that doesn't look too tasteful. Instead of QLineEdit's background I wonder if it is possible to turn only its borders red. What method to use? Many thanks in advance!