user336635
user336635

Reputation: 2281

Changing a color of a frame in QLineEdit

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

Answers (1)

Paolo Capriotti
Paolo Capriotti

Reputation: 4072

lineEdit->setStyleSheet("border: 1px solid red");

Upvotes: 15

Related Questions