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.
lineEdit->setStyleSheet("border: 1px solid red");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.