Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
-
None
-
-
88322f69a (dev), a53473052 (6.8)
Description
We implemented the widget gallery example to override the color scheme to Dark in the WidgetGallery constructor. When launching that example via the bundle (from finder or open gallery.app), then the UI shows up with a white background at first, and then changes to dark. This also happens when overriding the style, so it's not a QMacStyle specific issue.
When launching the example's executable directly (i.e. ./gallery.app/Contents/MacOS/gallery), then the problem doesn't reproduce.
The palette is correct in all cases (light palette before the WidgetGallery constructor, dark afterwards), and we don't construct the NSWindow until we show the widget.
As a workaround we now override the color scheme right away, but that's just a stop-gap solution.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-126248 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
567674,3 | Widget gallery example: set color scheme before constructing UI | dev | qt/qtbase | Status: MERGED | +2 | 0 |
567730,2 | Widget gallery example: set color scheme before constructing UI | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
599391,1 | Widget gallery example: Force dark color scheme on macOS only | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |