-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.3, 6.9.1
Giving app fusion style and then setting linear gradient as background changes the line edit border color.
Test #1: background-color as solid color:
QLineEdit *lineEdit1 = new QLineEdit; lineEdit1->setStyleSheet("QLineEdit { background-color: #ff0000; }");
=> No problem.
Test #2: background-color as linear gradient
QLineEdit *lineEdit2 = new QLineEdit; lineEdit2->setStyleSheet("QLineEdit {background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ff0000, stop: 0.499 #ff0000, stop: 0.5 #00ff00, stop: 1 #00ff00);}");
=> The border color suddenly changes to black
NOTE: This is a lot easier to see when using LIGHT mode on Windows.