[0150] 修复演讲模式闪烁#3415
Open
da-liii wants to merge 2 commits into
Open
Conversation
更新任务文档,记录闪烁问题的根因分析和修复方案。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
在 Windows 上,演讲模式下 viewport 背景为黑色,但 beamer 幻灯片背景通常为白色。 Qt 在子 widget 重绘前会自动填充 viewport 背景,导致黑色短暂显示后变白,产生闪烁。 修复内容: 1. 进入演讲模式时关闭 viewport 的 autoFillBackground 并设置 WA_OpaquePaintEvent 2. 退出时恢复这些设置 3. 在创建新 backing pixmap 时先用 tm_background 填充,避免未初始化区域显示为黑色 4. 添加单元测试验证 viewport 属性切换 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
修复内容
🤖 Generated with Claude Code