Repository navigation
Clean up Qt6 main-window-flicker workaround (Windows and Linux) - #2803
Merged
Merged
Conversation
Move the #2484 fix out of GuiApplication::run and the SCIRunMainWindow constructor into named helpers (setDefaultOpenGLFormat, primeOpenGLSurface) that say why they exist. Both are now Windows-only: the flicker was only ever seen there, and the forced 3.3 compatibility default format is a needless risk on macOS/Linux, which ran fine before PR #2463. The dummy widget no longer goes into the central widget's layout. A hidden widget takes no layout space, and parenting it to the main window is what matters to Qt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 9, 2026
dcwhite
marked this pull request as ready for review
November 10, 2026 08:26
Member
Author
|
Marking this ready so review can run in parallel with manual testing. I'll do the manual GUI checks on Windows, macOS and Linux tomorrow, 2026-11-11, and post the results here. Please don't merge before then. |
jessdtate
previously approved these changes
Nov 11, 2026
jessdtate
left a comment
Contributor
There was a problem hiding this comment.
tested on a local gui build on mac and works fine. It may need a windows test since it was a windows bug.
The full-window flash when the first ViewScene GL widget appears (#2484) also happens on Linux: Ubuntu 24.04, Wayland, Qt 6.4.2. With the workaround limited to Q_OS_WIN, adding a ViewScene snippet flashed the whole window. Gating on Q_OS_WIN || Q_OS_LINUX removes it. macOS is still excluded and untested. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Linux needed the fix too. |
jessdtate
approved these changes
Dec 4, 2026
dcwhite
enabled auto-merge
December 4, 2026 20:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2549.
What changed
GuiApplication.cc: the defaultQSurfaceFormatsetup moves intosetDefaultOpenGLFormat(), with a comment pointing to Qt6 Windows build: entire SCIRun app disappears momentarily when you add a saved snippet #2484.SCIRunMainWindow.cc: the hidden dummyQOpenGLWidgetmoves intoprimeOpenGLSurface(), with a comment explaining that Qt6 recreates the top-level native window the first time a GL child appears.Q_OS_WIN || Q_OS_LINUX). The PR first limited them to Windows, on the assumption that macOS and Linux never flickered. Manual testing showed Linux has the same full-window flash (Ubuntu 24.04, Wayland, Qt 6.4.2), so 1edc41a turns the workaround back on there. macOS is still excluded: it ran without the workaround before Refactor: modernize cmake, boost, qt, and others to the latest or near latest #2463, and the forced 3.3-compat default format doesn't match ViewScene's 2.1 Core request there. That hasn't been tested yet.Testing
Not built locally (there is no build tree in this checkout), so CI does the compile check.
🤖 Generated with Claude Code
Platform testing