Reputation: 2281
How/Can I change color of a frame in QLineEdit? What I've tried is this:
lineEdit->setStyleSheet("border: red");
and
lineEdit->setStyleSheet("border-color: red");
but it doesn't work.
Upvotes: 3
Views: 12485
Reputation: 4072
lineEdit->setStyleSheet("border: 1px solid red");
Upvotes: 15