Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.3, 6.7.0
-
-
92f6d22db (dev), 0ad15c410 (dev), 68014817a (6.7), 13aac24fb (6.7), a19243211 (tqtc/lts-6.5), 129393ab5 (tqtc/lts-6.5)
Description
Reproducer and a screenshot illustrating the issue are attached.
In light mode, everything looks fine - the ComboBox has a white background and black text inside. But in dark mode, ComboBox still has white background and text is totally invisible (See screenshot. I assume text becomes white as OS theme changes?).
I blame the fact that QML Window is not styled. Since with ApplicationWindow, everything looks perfect in both light and dark mode. Specifically, I think the good "updating all its children including popups" practice only exists in ApplicationWindow implementation but not Window implementation:
https://github.com/qt/qtdeclarative/blob/dev/src/quicktemplates/qquickapplicationwindow.cpp#L132
import QtQuick import QtQuick.Window import QtQuick.Controls.macOS Window { width: 640 height: 480 visible: true title: qsTr("Hello World") ComboBox { model: ["ONE", "TWO", "THREE"] } }
Attachments
Issue Links
- relates to
-
QTBUG-93449 Move Qt Quick Popups into Qt Quick framework
- Open
-
QTBUG-124357 Quick Controls are not rendered correctly when changing OS theme
- Closed
For Gerrit Dashboard: QTBUG-124474 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
559563,6 | ComboBox: fix popup palette inheritance | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
559842,2 | Doc: recommend ApplicationWindow instead of Window when using Controls | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
560194,2 | ComboBox: fix popup palette inheritance | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
560195,2 | Doc: recommend ApplicationWindow instead of Window when using Controls | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
560200,2 | ComboBox: fix popup palette inheritance | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
560201,2 | Doc: recommend ApplicationWindow instead of Window when using Controls | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |