Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.10.0, 5.12.0
-
None
-
mac os 10.13, 10.12, 10.14
-
-
c4e7f3ab6555c87fb41c5f341524445283720e6a (qt/qtbase/5.12)
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( "color: blue;" "background-color: yellow;"
"selection-color: yellow;" "selection-background-color: blue;" );
Attachments
Issue Links
- is duplicated by
-
QTBUG-73183 [Reg] QLineEdit background color and background transparency does not work with QPalette on default Mac style
- Closed
-
QTBUG-72662 QSpinBox cast background-color to white on Light Theme MacOS Mojave
- Closed