Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.10.1, 5.11.0, 5.11.1, 5.11.2, 5.11.3, 5.12.0
-
None
Description
QLineEdit QSpinBox QDoubleSpinBox can not change background color 不能设置背景色彩
code :
QLineEdit *nameEdit = new QLineEdit(this);
nameEdit->setGeometry(30,50,350,50);
nameEdit->setText("QLineEdit can not change background color");
nameEdit->setStyleSheet(// "QLineEdit { background-color: rgb(255, 0, 0) }" "color: blue;" "background-color: yellow;" "alternate-background-color: blue;" "selection-color: yellow;" "selection-background-color: blue;" );
Attachments
Issue Links
- duplicates
-
QTBUG-72409 QLineEdit QSpinBox QDoubleSpinBox SetStyleSheet can not change background color 不能设置背景色彩
- Closed