-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.8.3, 6.9.1
-
-
439b75881 (dev), d6618336c (6.10)
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.
For Gerrit Dashboard: QTBUG-138960 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
683507,3 | Fix QLineEdit frame color when using gradient style sheet and Fusion | dev | qt/qtbase | Status: MERGED | +2 | 0 |
683749,2 | Fix QLineEdit frame color when using gradient style sheet and Fusion | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |