qt6-bb10/examples/widgets
Volker Hilsheimer a53473052b Widget gallery example: set color scheme before constructing UI
On macOS, we see unexplained white flashes of the UI when
overriding the scheme in the widget's constructor. This only
happens when running the bundle, but not when running the
executable.

Work around that problem by setting the scheme immediately
after constructing QApplication.

Task-number: QTBUG-126248
Change-Id: I4a5fe467d628fca5e52e1e36f43af8143239c7fa
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 88322f69a20fddedd9c45a1bb25f6c1d2dcf31f9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-06-11 19:35:30 +00:00
..
animation Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
desktop systray example: if there is no system tray, allow waiting for one 2024-06-05 01:40:21 +00:00
dialogs CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
doc Replace 'Qt Designer' and 'Qt Widgets Designer' in code 2024-05-16 13:04:41 +01:00
draganddrop CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
gallery Widget gallery example: set color scheme before constructing UI 2024-06-11 19:35:30 +00:00
gestures CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
graphicsview CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
itemviews Replace 'Qt Designer' and 'Qt Widgets Designer' in code 2024-05-16 13:04:41 +01:00
layouts CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
mainwindows CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
painting CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
qnx/foreignwindows Doc: Fix license of foreignwindows example 2023-06-30 18:46:54 +02:00
rhi CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
richtext CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tools CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
touch CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tutorials CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
widgets Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
widgets.pro Add QRhiWidget 2023-08-14 17:05:36 +02:00