Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.16, 6.6.2
-
-
f2b681dc5 (dev), 359b64828 (6.7), 29a75b99f (6.6)
Description
Run the attached testcase and see red text "Test". This is correct as the style sheet is set to "QMainWindow { color: red }" and the red color propagates to the text.
Now click RMB and see "Test 2" but in black! It is expected to be red as the QLabel is child of QMainWindow and it should derive the palette.
What is interesting if you uncomment lines 26,27 (which set and reset some dummy sylesheet to the label) the label gets proper color:
ll->setStyleSheet("background-color: blue");
ll->setStyleSheet("");
Attachments
For Gerrit Dashboard: QTBUG-122588 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
552094,1 | Documentation: Clarify palette/font/stylesheet inheritance/propagation | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |