Hello!

I use a stylesheet to draw a red border around QLineEdits if the QValidator fails. So far this works fine. But I could not figure out how to reset the stylesheet to the default one. The style is returned to its default on a valid input, but not if the field is emptied.

I read somewhere that one could use

Qt Code:
  1. lineEdit->setStyleSheet(styleSheet());
To copy to clipboard, switch view to plain text mode 

but this does not work...

Do you know how I can fix this?

Kind regards,
HomeR