Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Default boarder colour
Buller last edited by
I am dynamically changing the boarder colour of a QLineEdit, thus:
setStyleSheet("border-style: outset; border-width: 2px; border-color: green;");
But I have not found away to restore it to the original colour. I have tried things such as
setstyle: outset; border-width: 1px; border-color: Qt::default;");
but that cannot be parsed:
Could not parse stylesheet of object 0x55ad1162fd60
Since Qt::default that is not accepted, what should it be? I can fiddle it by setting a specific colour, but that's a rather ugly hack, that I fear could lead to problems some time in the future.
Since Qt::default that is not accepted, what should it be?