Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0
-
None
-
-
551cbc5b1 (dev), 7c3222028 (6.6), 9435d8b2c (6.5)
Description
Steps to reproduce:
- start an app with light style active
- open the QFileDialog (doesn't matter if it started from cpp code or via QML's FileDialog)
- close the file dialog
- switch to another app
- switch back to our app ---> palette brakes here, QStyleHints::colorScheme now reports "Dark"
As a result part of colors are switched to "dark" (e.g. menus, drawers, dialogs, switch backgrounds, etc) while others stay at "light".
I used a "gallery" example to reproduce this. Insert menu item that will open FileDialog, and print colorScheme into Label.
import Qt.labs.platform as Platform ... Platform.FileDialog { id: fileDialog } ... Action { text: "File open" onTriggered: fileDialog.open() } ... Label { text: "SCHEME: " + Qt.styleHints.colorScheme
Switching apps back and forth w/o previously open the file dialog doesn't make an issue.
Opening and closing file dialog w/o restoring the app doesn't make an issue too.
Attachments
Issue Links
- relates to
-
QTBUG-114571 Incorrect colors after switching between light and dark modes
- Closed
For Gerrit Dashboard: QTBUG-113169 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
487395,1 | iOS plugin: Make sure window is of type QUIWindow when determining the color scheme | 6.5.2 | qt/qtbase | Status: NEW | +2 | 0 |
487381,5 | iOS plugin: Make sure window is of type QUIWindow when determining the color scheme | dev | qt/qtbase | Status: MERGED | +2 | 0 |
487394,2 | iOS plugin: Make sure window is of type QUIWindow when determining the color scheme | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
487396,2 | iOS plugin: Make sure window is of type QUIWindow when determining the color scheme | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |