Fix QMainWindow Resize Crash in Qt6 #1082
Open
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.
Linked issues
Fixes #1063
Summarize your change.
On the GLView's first paintGL routine, the Rv Window's resizeToFit function is now called from inside a singleShot. This causes it to run after the first paintGL completes, which avoids the state that previously caused the crash.
Describe the reason for the change.
OpenRV, when built with the VFX2024 option which includes Qt6 6.5.3, had a crash regression. The crash would occur when resizing the main window after the preference "Fit Window to First Media Loaded" executed.
Describe what you have tested and on which operating system.
Tested on Linux RHEL 9.6. Made sure the steps below no longer resulted in a crash:
-DRV_VFX_CY2024=1RV > Preferences > Fit Window to First Media Loadedis activerv colorchart,start=1,end=2,width=1920,height=804,fps=24.movieprocView > Lock Pixel Scale During Resize.