Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126248

macOS: widget UI flashes when overriding color scheme during UI construction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8
    • GUI: Look'n'Feel
    • None
    • macOS
    • 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

        For Gerrit Dashboard: QTBUG-126248
        # Subject Branch Project Status CR V

        Activity

          People

            vhilshei Volker Hilsheimer
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes